Faster frontend authentication.

This commit is contained in:
Antoine Nguyen
2025-09-19 18:15:56 +02:00
parent ac6182f534
commit 1e64d43911
5 changed files with 5 additions and 23 deletions
-3
View File
@@ -490,9 +490,6 @@ router.beforeEach(async (to, from, next) => {
const previousPage = window.location.href
sessionStorage.setItem('previousPage', previousPage)
const authStore = useAuthStore()
if (!authStore.authUser) {
await authStore.initialize()
}
const isAuth = await authStore.validateAccess()
if (isAuth) {
if (to.meta.allowedRoles !== undefined) {