Skip to content

Releases: auth0/auth0-spa-js

v1.8.2

26 May 18:02
e6c3ba1
Compare
Choose a tag to compare

Fixed

  • [SDK-1640] Allow the client to be constructed in a Node SSR environment #471 (adamjmcgrath)
  • [SDK-1634] Pass custom options to the token endpoint #465 (stevehobbsdev)
  • [SDK-1649] Fix issue where cache was missed when scope parameter was provided #461 (adamjmcgrath)

v1.8.1

06 May 09:22
733d1d9
Compare
Choose a tag to compare

Fixed

v1.8.0

01 May 09:33
4b1a58d
Compare
Choose a tag to compare

This version fixes a problem using the SDK within a Gatsby site, which would fail a build with a "Blob is not defined" error, as well as introducing the ability to specify custom default scopes.

Custom default scopes

Usage:

await createAuth0Client({
  domain: 'your-domain.auth0.com',
  client_id: 'some-client-id-xyz',
  advancedOptions: {
    defaultScope: 'email'
  }
}

Full changelog

Added

Fixed

v1.7.0

15 Apr 15:17
de3f3d0
Compare
Choose a tag to compare

Highlights

This release introduces a number of new features; two of these are detailed below:

Rotating Refresh Tokens

This feature adds support for rotating Refresh Tokens, which can be used to mitigate the effects of modern browser privacy tools, such as Safari's ITP technology. Refresh tokens do not depend on the user's session cookie and thus are unaffected by third-party cookie blocking.

To turn on the use of Refresh Tokens in the SDK, use the useRefreshTokens option when configuring the SDK client:

await createAuth0Client({
  domain: '<YOUR AUTH0 DOMAIN>',
  client_id: '<YOUR AUTH0 CLIENT ID>',
  useRefreshTokens: true    // the default is 'false'
})

Local Storage

From this release, you will be able to opt-in to using local storage to store the tokens that are returned from the authorization server. The default is to use the in-memory cache.

Note: Enabling local storage changes the security characteristics of your application; please read and understand the implications of enabling use of local storage to store tokens.

To do this, configure the cacheLocation to localstorage when configuring the SDK client:

await createAuth0Client({
  domain: '<YOUR AUTH0 DOMAIN>',
  client_id: '<YOUR AUTH0 CLIENT ID>',
  cacheLocation: 'localstorage'
})

The full changelog is below.

Added

Changed

Fixed

Security

v1.7.0-beta.5

26 Mar 15:31
2a8e6f6
Compare
Choose a tag to compare
v1.7.0-beta.5 Pre-release
Pre-release

Changed

v1.6.5

19 Mar 13:11
773e87a
Compare
Choose a tag to compare

Changed

Fixed

  • [SDK-1127] Delay removal of iframe to prevent Chrome hanging status bug #240 #376 (adamjmcgrath)
  • [SDK-1125] createAuth0Client now throws errors that are not login_required #369 (stevehobbsdev)

v1.7.0-beta.4

04 Mar 09:55
0b8cfc1
Compare
Choose a tag to compare
v1.7.0-beta.4 Pre-release
Pre-release

Changed

  • [SDK-1386] Fall back to iframe method if no refresh token is available #364 (stevehobbsdev)

Fixed

v1.7.0-beta.3

17 Feb 17:16
5a64d45
Compare
Choose a tag to compare
v1.7.0-beta.3 Pre-release
Pre-release

Added

  • Export types from global TypeScript file. #310 (maxswa)

Changed

  • [SDK-1352] Removed setTimeout cache removal in favour of removal-on-read #354 (stevehobbsdev)
  • [SDK-1352] Stop checking isAuthenticated cookie on initialization when using local storage #352 (stevehobbsdev)
  • [SDK-1279] getTokenSilently retry logic #336 (stevehobbsdev)

v1.6.4

11 Feb 10:39
3cc274a
Compare
Choose a tag to compare
  • [SDK-1308] Return appState value on error from handleRedirectCallback #348 (stevehobbsdev)
  • Configurable timeout for getTokenSilently() #347 (Serjlee)

v1.6.3

28 Jan 15:27
dd0784e
Compare
Choose a tag to compare

Fixed