From 534206095f3712758c81c7e502e95d1601b99996 Mon Sep 17 00:00:00 2001 From: Classic298 <27028174+Classic298@users.noreply.github.com> Date: Mon, 29 Jun 2026 09:54:19 +0200 Subject: [PATCH] fix: route Account Pending sign out through backend signout flow (#25681) The Sign Out button on the Account Pending overlay only cleared the local token and redirected to /auth, skipping the backend signout. This left the OAuth/OIDC session alive at the IdP, so re-login bounced the user straight back into pending and never re-fetched updated role/group claims. Call userSignOut() and honor the returned redirect_url, matching the sidebar logout flow. Fixes #25644 Co-authored-by: Claude Opus 4.8 (1M context) --- src/lib/components/layout/Overlay/AccountPending.svelte | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/lib/components/layout/Overlay/AccountPending.svelte b/src/lib/components/layout/Overlay/AccountPending.svelte index ae3b7e896b..84f74361f8 100644 --- a/src/lib/components/layout/Overlay/AccountPending.svelte +++ b/src/lib/components/layout/Overlay/AccountPending.svelte @@ -2,7 +2,7 @@ import DOMPurify from 'dompurify'; import { marked } from 'marked'; - import { getAdminDetails } from '$lib/apis/auths'; + import { getAdminDetails, userSignOut } from '$lib/apis/auths'; import { onMount, tick, getContext } from 'svelte'; import { config } from '$lib/stores'; @@ -70,8 +70,12 @@