Skip to content

Releases: auth0/auth0-spa-js

v1.7.0-beta.2

16 Jan 17:05
3018e9e
Compare
Choose a tag to compare
v1.7.0-beta.2 Pre-release
Pre-release

Changed

v1.6.2

13 Jan 20:23
f8172a7
Compare
Choose a tag to compare

v1.7.0-beta.1

09 Jan 10:17
ed11544
Compare
Choose a tag to compare
v1.7.0-beta.1 Pre-release
Pre-release

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

07 Jan 15:17
df3a025
Compare
Choose a tag to compare
  • 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

v1.6.0

21 Nov 10:57
f0512fd
Compare
Choose a tag to compare

Added
Added buildAuthorizeUrl and url parameter to handleRedirectCallback - austin43 - #280

Fixed
Released browser lock on getTokenSilently error - #276
Updates browser-tabs-lock to fix issue of long acquired lock - super-tokens - 3413e30

v1.5.0

31 Oct 20:02
593acdf
Compare
Choose a tag to compare

Added
Add a new property 'fragment' to be appended to the authorize URL on redirect - #249

v1.4.2

31 Oct 00:45
Compare
Choose a tag to compare

Fixed
Update typescript definition for max_age param - #260
Fix for typings files in packaged SDK - #263

v1.4.0

30 Oct 14:05
de255cd
Compare
Choose a tag to compare

Added
Add 'lock' to prevent getTokenSilently to be invoked in parallel #238
Improved OIDC compliance #248

Fixed
Fix for race condition when using sha256 on IE11 #252
Fixed the codeowners file with the correct group #253
Document leeway default value #256
Clear transaction data on error #254

v1.3.2

17 Oct 14:59
Compare
Choose a tag to compare

parseQueryString now removes hash fragment on query before parsing #246

v1.3.1

14 Oct 18:16
a74501f
Compare
Choose a tag to compare

Fixed
Fix IE msCrypto.subtle usage #242