diff --git a/src/main.ts b/src/main.ts index 3706028..18da9f9 100644 --- a/src/main.ts +++ b/src/main.ts @@ -28,19 +28,20 @@ getConfig().then((conf: Config | null) => { if (conf === null) { throw new Error('config was null') } + const app = createApp(App) + + app.provide(apiBaseURL, conf.apiBaseURL) + authentikAuth.startup().then((ok: boolean) => { if (ok) { - const app = createApp(App) + app.provide(oidc, authentikAuth) + const pinia = createPinia() app.use(router) app.use(vuetify) app.use(pinia) - app.provide(oidc, authentikAuth) - - app.provide(apiBaseURL, conf.apiBaseURL) - app.mount('#app') } })