auth0-spa-js

Auth0 authentication for Single Page Applications (SPA) with PKCE

MIT License

Downloads
3.5M
Stars
912
Committers
68

Bot releases are hidden (Show)

auth0-spa-js - v1.13.3

Published by stevehobbsdev almost 4 years ago

Fixed

  • [SDK-2156] Heed timeoutInSeconds when calling getTokenSilently with refresh tokens #639 (stevehobbsdev) (#636)
auth0-spa-js - v1.13.2

Published by stevehobbsdev almost 4 years ago

[SDK-2121] Add support for ID token validation for Organizations #631 (stevehobbsdev)

Note: This relates to a product feature that is not yet generally available
for public consumption.

auth0-spa-js - v1.13.1

Published by stevehobbsdev almost 4 years ago

Changed

Fixed

  • Fix leaking windows message event listener #422 (yinzara)
auth0-spa-js - v1.13.0

Published by frederikprijck almost 4 years ago

Added

Fixed

auth0-spa-js - v1.12.1

Published by adamjmcgrath about 4 years ago

Fixed

  • Remove sessionStorage requirement from instantiation to fix SSR environments #578 (adamjmcgrath)
auth0-spa-js - v1.12.0

Published by adamjmcgrath about 4 years ago

Added

Changed

Fixed

auth0-spa-js - v1.11.0

Published by adamjmcgrath about 4 years ago

Added

Fixed

auth0-spa-js - v1.10.0

Published by stevehobbsdev over 4 years ago

Changed

  • [SDK-1696] Allow caller of cache.get to specify an expiry time adjustment #491 (stevehobbsdev)

Fixed

auth0-spa-js - v1.9.0

Published by adamjmcgrath over 4 years ago

Added

  • [SDK-1695] Add auth0Client option so wrapper libraries can send their own client info #490 (adamjmcgrath)
  • Add checkSession and ignore recoverable errors #482 (adamjmcgrath)

Fixed

auth0-spa-js - v1.8.2

Published by adamjmcgrath over 4 years ago

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)
auth0-spa-js - v1.8.1

Published by adamjmcgrath over 4 years ago

Fixed

auth0-spa-js - v1.8.0

Published by stevehobbsdev over 4 years ago

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

auth0-spa-js - v1.7.0

Published by stevehobbsdev over 4 years ago

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

auth0-spa-js - v1.7.0-beta.5

Published by adamjmcgrath over 4 years ago

Changed

auth0-spa-js - v1.6.5

Published by adamjmcgrath over 4 years ago

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)
auth0-spa-js - v1.7.0-beta.4

Published by stevehobbsdev over 4 years ago

Changed

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

Fixed

auth0-spa-js - v1.7.0-beta.3

Published by stevehobbsdev over 4 years ago

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)
auth0-spa-js - v1.6.4

Published by stevehobbsdev over 4 years ago

  • [SDK-1308] Return appState value on error from handleRedirectCallback #348 (stevehobbsdev)
  • Configurable timeout for getTokenSilently() #347 (Serjlee)
auth0-spa-js - v1.6.3

Published by stevehobbsdev over 4 years ago

Fixed

auth0-spa-js - v1.7.0-beta.2

Published by stevehobbsdev almost 5 years ago

Changed

Package Rankings
Top 1.03% on Npmjs.org
Top 24.88% on Repo1.maven.org
Badges
Extracted from project README
Codecov License