@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 +2 -2
- package/dist/auth0-spa-js.development.js +133 -75
- package/dist/auth0-spa-js.development.js.map +1 -1
- package/dist/auth0-spa-js.production.esm.js +1 -1
- package/dist/auth0-spa-js.production.esm.js.map +1 -1
- package/dist/auth0-spa-js.production.js +1 -1
- package/dist/auth0-spa-js.production.js.map +1 -1
- package/dist/lib/auth0-spa-js.cjs.js +133 -75
- package/dist/lib/auth0-spa-js.cjs.js.map +1 -1
- package/dist/typings/Auth0Client.d.ts +13 -12
- package/dist/typings/global.d.ts +4 -0
- package/dist/typings/version.d.ts +1 -1
- package/package.json +2 -2
- package/src/Auth0Client.ts +43 -26
- package/src/global.ts +5 -0
- package/src/http.ts +2 -0
- package/src/version.ts +1 -1
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.
|
|
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;
|