feat: complete auth flow - email confirmation, login state, route guards
This commit is contained in:
+7
-2
@@ -11,6 +11,11 @@ app.use(pinia)
|
||||
app.use(router)
|
||||
|
||||
const authStore = useAuthStore()
|
||||
authStore.initialize().then(() => {
|
||||
|
||||
if (window.location.pathname === '/auth/confirm') {
|
||||
app.mount('#app')
|
||||
})
|
||||
} else {
|
||||
authStore.initialize().then(() => {
|
||||
app.mount('#app')
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user