From 9a064353eef90bf744676f4c0d9f6511eb4c785e Mon Sep 17 00:00:00 2001 From: Annika Merris Date: Sat, 2 Mar 2024 09:12:03 -0500 Subject: [PATCH] Changed Initialization Order --- src/main.ts | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) 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') } })