Skip to content

Commit

Permalink
FIX: It was not possible to login after logging out (#2460)
Browse files Browse the repository at this point in the history
The user was logged out immediately after logging in
  • Loading branch information
JindrichSusen committed Feb 8, 2024
1 parent fc8c5ee commit 1feb929
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frontend-html/src/model/entities/ApplicationLifecycle.tsx
Expand Up @@ -113,7 +113,8 @@ export class ApplicationLifecycle implements IApplicationLifecycle {
if (sessionStorageKey.startsWith("oidc.user")) {
// That is an oauth session...
api.resetAccessToken();
userManager.signoutRedirect();
yield userManager.signoutRedirectCallback();
yield userManager.signoutRedirect();
return;
}
}
Expand Down
1 change: 1 addition & 0 deletions frontend-html/src/oauth.ts
Expand Up @@ -62,5 +62,6 @@ export async function ensureLogin() {
}

export async function logoff() {
await userManager.signoutRedirectCallback();
await userManager.signoutRedirect();
}

0 comments on commit 1feb929

Please sign in to comment.