From 8d821a68029a68252ef69a2e9029de8d11622a1e Mon Sep 17 00:00:00 2001 From: florianfederspiel Date: Tue, 2 Jun 2026 11:47:45 +0200 Subject: [PATCH] =?UTF-8?q?Reload=20w=C3=A4hrend=20Authentifizierung=20erl?= =?UTF-8?q?auben?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/plugins/api.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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: