feat: add shared UI package auth DI (#5720)

* feat: add shared UI package auth DI

* use refs instead of reactive

* pnpm prepr

* move app auth provider setup to src/providers/setup
This commit is contained in:
Truman Gao
2026-03-31 17:15:35 +00:00
committed by GitHub
parent e2bfed177d
commit 4224ef45b3
6 changed files with 78 additions and 0 deletions
+2
View File
@@ -1,6 +1,7 @@
import { provideNotificationManager } from '@modrinth/ui'
import { FrontendNotificationManager } from './frontend-notifications'
import { setupAuthProvider } from './setup/auth'
import { setupFilePickerProvider } from './setup/file-picker'
import { setupModrinthClientProvider } from './setup/modrinth-client'
import { setupPageContextProvider } from './setup/page-context'
@@ -9,6 +10,7 @@ import { setupTagsProvider } from './setup/tags'
export function setupProviders(auth: Awaited<ReturnType<typeof useAuth>>) {
provideNotificationManager(new FrontendNotificationManager())
setupAuthProvider(auth)
setupModrinthClientProvider(auth)
setupTagsProvider()
setupFilePickerProvider()