Auth0-SPA-JS v2 has been released in beta!

:loudspeaker: We are happy to announce a new major version of our SDK for Single Page Applications is available in beta! :loudspeaker:

With this version, we have made a series of significant changes, including (but not limited to):

  • All polyfills have been removed and our bundles are shipped using ES2017; reducing the bundle size by 60%.

  • As a consequence, support for IE11 (and any browser not supporting ES2017, which should be rather limited) has been dropped.

  • More consistent casing (camelCasing vs snake_casing)

  • Internally restructured how we store the ID Token, resulting in the removal of all arguments for both getUser() and getIdTokenClaims()

  • Added the ability to retrieve a token from the cache only, without contacting Auth0 if no valid token can be found.

When upgrading your application to use Auth0-SPA-JS v2, be sure to review the migration guide thoroughly to understand the changes required to migrate your application.
As with any beta version, it is not recommended for use in production applications as it may be subject to change.

Resources:

We welcome your feedback and reports on any issues you encounter when trying out this new beta version.

Should you have any feedback or questions about the SDK, please raise an issue via GitHub.

:rocket:

1 Like