Skip to content

Commit 4f43659

Browse files
committed
fix: browser logout cleanup wasnt proper and integ tests that caught it
1 parent 45e3b40 commit 4f43659

File tree

2 files changed

+530
-78
lines changed

2 files changed

+530
-78
lines changed

src/services/login-browser.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,7 @@ define(function (require, exports, module) {
344344

345345
// Always reset local state regardless of server response
346346
await _resetBrowserLogin();
347+
await _verifyBrowserLogin();
347348

348349
if (response.ok) {
349350
const result = await response.json();
@@ -373,6 +374,7 @@ define(function (require, exports, module) {
373374
} catch (error) {
374375
// Always reset local state even on network error
375376
await _resetBrowserLogin();
377+
await _verifyBrowserLogin();
376378
console.error("Network error during logout:", error);
377379
const dialog = Dialogs.showModalDialog(
378380
DefaultDialogs.DIALOG_ID_ERROR,

0 commit comments

Comments
 (0)