Changed Initialization Order

This commit is contained in:
Annika Merris 2024-03-02 09:12:03 -05:00
parent 1ac38f584e
commit 9a064353ee

View file

@ -28,19 +28,20 @@ getConfig().then((conf: Config | null) => {
if (conf === null) { if (conf === null) {
throw new Error('config was null') throw new Error('config was null')
} }
const app = createApp(App)
app.provide(apiBaseURL, conf.apiBaseURL)
authentikAuth.startup().then((ok: boolean) => { authentikAuth.startup().then((ok: boolean) => {
if (ok) { if (ok) {
const app = createApp(App) app.provide(oidc, authentikAuth)
const pinia = createPinia() const pinia = createPinia()
app.use(router) app.use(router)
app.use(vuetify) app.use(vuetify)
app.use(pinia) app.use(pinia)
app.provide(oidc, authentikAuth)
app.provide(apiBaseURL, conf.apiBaseURL)
app.mount('#app') app.mount('#app')
} }
}) })