@auth0/auth0-spa-js 2.1.0 → 2.1.1

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/README.md CHANGED
@@ -70,7 +70,7 @@ const auth0 = await createAuth0Client({
70
70
  }
71
71
  });
72
72
 
73
- //or, you can just instantiate the client on it's own
73
+ //or, you can just instantiate the client on its own
74
74
  import { Auth0Client } from '@auth0/auth0-spa-js';
75
75
 
76
76
  const auth0 = new Auth0Client({
@@ -472,7 +472,7 @@
472
472
  exports.default = SuperTokensLock;
473
473
  }));
474
474
  var Lock = unwrapExports(browserTabsLock);
475
- var version = "2.1.0";
475
+ var version = "2.1.1";
476
476
  const DEFAULT_AUTHORIZE_TIMEOUT_IN_SECONDS = 60;
477
477
  const DEFAULT_POPUP_CONFIG_OPTIONS = {
478
478
  timeoutInSeconds: DEFAULT_AUTHORIZE_TIMEOUT_IN_SECONDS
@@ -1121,8 +1121,8 @@
1121
1121
  const orgName = org.toLowerCase();
1122
1122
  if (!decoded.claims.org_name) {
1123
1123
  throw new Error("Organization Name (org_name) claim must be a string present in the ID token");
1124
- } else if (orgName !== decoded.claims.org_name.toLowerCase()) {
1125
- throw new Error(`Organization Name (org_name) claim mismatch in the ID token; expected "${orgName}", found "${decoded.claims.org_name.toLowerCase()}"`);
1124
+ } else if (orgName !== decoded.claims.org_name) {
1125
+ throw new Error(`Organization Name (org_name) claim mismatch in the ID token; expected "${orgName}", found "${decoded.claims.org_name}"`);
1126
1126
  }
1127
1127
  }
1128
1128
  }