@auth0/auth0-spa-js 1.19.4 → 1.20.0

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
@@ -31,7 +31,7 @@ Auth0 SDK for Single Page Applications using [Authorization Code Grant Flow with
31
31
  From the CDN:
32
32
 
33
33
  ```html
34
- <script src="https://cdn.auth0.com/js/auth0-spa-js/1.19/auth0-spa-js.production.js"></script>
34
+ <script src="https://cdn.auth0.com/js/auth0-spa-js/1.20/auth0-spa-js.production.js"></script>
35
35
  ```
36
36
 
37
37
  Using [npm](https://npmjs.org):
@@ -104,7 +104,7 @@ const auth0 = new Auth0Client({
104
104
 
105
105
  //if you do this, you'll need to check the session yourself
106
106
  try {
107
- await getTokenSilently();
107
+ await auth0.getTokenSilently();
108
108
  } catch (error) {
109
109
  if (error.error !== 'login_required') {
110
110
  throw error;