feat(dpop): provide nonce on immediate login

provide the DPoP nonce via cookie on login, this reduce the amount of API call
and prevent having any first call returning in 401
This commit is contained in:
Edouard Vanbelle
2026-08-09 14:40:10 +02:00
parent 2eb1e8a1d5
commit 950c8c0f38
9 changed files with 155 additions and 1 deletions
+7
View File
@@ -301,6 +301,13 @@ export function setLogoutInProgress(value: boolean): void {
logoutInProgress = value;
}
/** Read-only view of the gate — used by cross-tab handlers to distinguish
* OUR logout (already handled by AppShell.onLogout with source=logged_out)
* from ANOTHER tab's logout (which needs a bare redirect). */
export function isLogoutInProgress(): boolean {
return logoutInProgress;
}
// Same shape as `sessionExpiredHandler` — mutable so the app can install
// the real behaviour post-mount, and a fallback for the (rare) case
// where no handler is wired yet (bootstrap, tests). The fallback does