Releases: auth0/auth0-spa-js
v1.7.0-beta.2
Changed
- Fixed issue with cache not retaining refresh token #333 (stevehobbsdev)
v1.6.2
- Removed future issued-at claim check stevehobbsdev - #329
v1.7.0-beta.1
Added
- Ability to use either an in-memory cache (the default) or localstorage to store tokens - stevehobbsdev - #303
- Added support for rotating refresh tokens - stevehobbsdev - #315
New cache location options
By default, auth0-spa-js will store tokens in memory. We have now added a second option, allowing you to store tokens in local storage. This has the benefit of being able to persist tokens across page refreshes.
The storage strategy can be configured using the option cacheLocation
when invoking createAuth0Client
:
const auth0 = await createAuth0Client({
domain: '<your Auth0 domain>',
client_id: '<your Auth0 client ID>',
cacheLocation: 'localstorage'
});
The cacheLocation
option can be set to one of two values: memory
, or localstorage
.
Note: Please be aware that configuring the SDK to store tokens in local storage could leave your tokens vulnerable in the event of an XSS attack.
v1.6.1
-
Included core-js polyfill for
String.includes
to fix an issue with browser-tabs-lock in IE11 stevehobbsdev - #325 -
Added import definition to Getting Started section in the Readme for clarity thundermiracle - #294