Skip to content

Commit

Permalink
fix: navigate to session service page after getSession
Browse files Browse the repository at this point in the history
  • Loading branch information
bogdan-niculescu-sch committed May 10, 2024
1 parent 7293238 commit 8bf20df
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/identity.js
Original file line number Diff line number Diff line change
Expand Up @@ -603,7 +603,7 @@ export class Identity extends EventEmitter {
await this.callbackBeforeRedirect();

// Doing a return here, to avoid caching the redirect response
return this.window.location.href = this._sessionService.makeUrl(sessionData.redirectURL, {tabId: this._getTabId()});
return this._sessionService.makeUrl(sessionData.redirectURL, {tabId: this._getTabId()});
}

if (this._enableSessionCaching) {
Expand Down Expand Up @@ -677,6 +677,10 @@ export class Identity extends EventEmitter {
this._hasSessionInProgress = false;
this._unblockSessionCallByTab();

if (isUrl(sessionData)) {
return this.window.location.href = sessionData;
}

return sessionData;
},
err => {
Expand Down

0 comments on commit 8bf20df

Please sign in to comment.