@auth0/auth0-spa-js 2.1.1 → 2.1.2

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.
@@ -481,7 +481,7 @@ var browserTabsLock = createCommonjsModule((function(module, exports) {
481
481
 
482
482
  var Lock = unwrapExports(browserTabsLock);
483
483
 
484
- var version = "2.1.1";
484
+ var version = "2.1.2";
485
485
 
486
486
  const DEFAULT_AUTHORIZE_TIMEOUT_IN_SECONDS = 60;
487
487
 
@@ -1974,7 +1974,7 @@ class Auth0Client {
1974
1974
  daysUntilExpire: this.sessionCheckExpiryDays,
1975
1975
  cookieDomain: this.options.cookieDomain
1976
1976
  });
1977
- this._processOrgHint(organization);
1977
+ this._processOrgHint(organization || decodedToken.claims.org_id);
1978
1978
  return Object.assign(Object.assign({}, authResult), {
1979
1979
  decodedToken: decodedToken
1980
1980
  });