From 1d3a234b0537968076cb9eb4fdb61ce1b276b899 Mon Sep 17 00:00:00 2001 From: kolaente Date: Wed, 8 Apr 2026 10:19:25 +0200 Subject: [PATCH] fix: reset checkAuth debounce in linkShareAuth to prevent redirect loop When a logged-in user opens a public link share, the 1-minute debounce on checkAuth() caused it to skip re-parsing the new link share JWT. This left authLinkShare as false, triggering an infinite redirect loop in the router guard. Fixes #2546 --- frontend/src/stores/auth.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/frontend/src/stores/auth.ts b/frontend/src/stores/auth.ts index cd168cc34..b2f77c391 100644 --- a/frontend/src/stores/auth.ts +++ b/frontend/src/stores/auth.ts @@ -283,6 +283,9 @@ export const useAuthStore = defineStore('auth', () => { password: password, }) saveToken(response.data.token, false) + // Reset the debounce so checkAuth() actually parses the new link share + // JWT instead of silently returning due to the 1-minute throttle. + lastUserInfoRefresh.value = null await checkAuth() return response.data }