fix: prevent logout loop by showing signed-out state instead of auto-redirecting
All checks were successful
CI / build (push) Successful in 2m45s
CI / docker (push) Successful in 1m50s

After logout, redirect to /platform/login?signed_out which shows a
"Signed out" card with a "Sign in again" button instead of immediately
redirecting back to Logto OIDC (which would auto-authenticate if the
Logto session cookie persists).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
hsiegeln
2026-04-25 18:52:26 +02:00
parent 37668dcfe0
commit 2cb818ec71
2 changed files with 39 additions and 4 deletions

View File

@@ -7,7 +7,7 @@ export function useAuth() {
const { currentTenantId } = useOrgStore();
const logout = useCallback(() => {
signOut(window.location.origin + '/platform/login');
signOut(window.location.origin + '/platform/login?signed_out');
}, [signOut]);
return {