diff --git a/frontend/plugins/api.ts b/frontend/plugins/api.ts index 42627b3..be0137d 100644 --- a/frontend/plugins/api.ts +++ b/frontend/plugins/api.ts @@ -54,7 +54,9 @@ export default defineNuxtPlugin(() => { description = "Deine Sitzung ist abgelaufen oder ungültig." if (!requestPath.includes("/auth/login")) { const auth = useAuthStore() - auth.expireSession() + if (!auth.loading && auth.user) { + auth.expireSession() + } } break case 403: