@schibsted/account-sdk-browser 5.0.1-beta.6 → 5.0.1-beta.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@schibsted/account-sdk-browser",
3
- "version": "5.0.1-beta.6",
3
+ "version": "5.0.1-beta.7",
4
4
  "description": "Schibsted account SDK for browsers",
5
5
  "main": "index.js",
6
6
  "type": "module",
package/src/identity.js CHANGED
@@ -603,7 +603,7 @@ export class Identity extends EventEmitter {
603
603
  await this.callbackBeforeRedirect();
604
604
 
605
605
  // Doing a return here, to avoid caching the redirect response
606
- return this.window.location.href = this._sessionService.makeUrl(sessionData.redirectURL, {tabId: this._getTabId()});
606
+ return this._sessionService.makeUrl(sessionData.redirectURL, {tabId: this._getTabId()});
607
607
  }
608
608
 
609
609
  if (this._enableSessionCaching) {
@@ -677,6 +677,10 @@ export class Identity extends EventEmitter {
677
677
  this._hasSessionInProgress = false;
678
678
  this._unblockSessionCallByTab();
679
679
 
680
+ if (isUrl(sessionData)) {
681
+ return this.window.location.href = sessionData;
682
+ }
683
+
680
684
  return sessionData;
681
685
  },
682
686
  err => {
package/src/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  // Automatically generated in 'npm version' by scripts/genversion.js
2
2
 
3
3
  'use strict'
4
- const version = '5.0.1-beta.6';
4
+ const version = '5.0.1-beta.7';
5
5
  export default version;