github auth0/auth0.js v8.0.0
8.0.0

latest releases: v9.26.0, v9.25.0, v9.24.1...
7 years ago

Full Changelog

In v8 auth0.js is divided in three different components:

  • WebAuth: Handles all AuthN/AuthZ flows with redirect/popup inside the browser and related Auth API endpoints, e.g. /logout.
  • AuthenticationAPI: Helper methods for calling Auth0 Authentication API
  • ManagementAPI: Helper methods for calling Auth0 Management API

To get started you can just create a WebAuth instance like this

var auth0 = new auth0.WebAuth({
  domain: "{YOUR_AUTH0_DOMAIN}",
  clientID: "{YOUR_AUTH0_CLIENT_ID}"
});

Since auth0.js is intended to be used in javascript clients running in the browser most of the times an instance of WebAuth is needed.

And if you ever need to perform an xhr request to Auth0 Authentication API, WebAuth exposes an instance of AuthenticationAPI

auth0.client.userInfo(accessToken, function(error, userInfo) {
    // User information or error
  });

Added

  • add token validation and signature verification to the parseHash method #278 (glena)
  • Add method to signup and login using password-realm #277 (glena)

Breaking changes

  • Rename methods based on authN and authZ type #280 (glena)

Don't miss a new auth0.js release

NewReleases is sending notifications on new releases.