Skip to content

2.0.0

Compare
Choose a tag to compare
@jmelberg-okta jmelberg-okta released this 14 Aug 23:48
· 784 commits to master since this release
ff1dec7

Breaking Changes

  • Token retrieval is now asyncronous to account for automatic token renewal.

    // ES2016+
    const accessToken = await authClient.tokenManager.get('accessToken');
    
    // Handle as a promise
    authClient.tokenManager.get('accessToken')
    .then(function(accessToken) {
      console.log(accessToken);
    });
  • Removed the following deprecated methods:

    • idToken.authorize
    • idToken.verify
    • idToken.refresh
    • idToken.decode

Fixes

Other

  • 3d6db9b - Removes deprecated methods (#115)
  • 953ef05 - Clears whitespace on URLs passed during authClient instantiation (#133 )
  • 6b335dd - Infer url from the issuer to simplify setup (#134)
  • 87f430c - Rename refresh to renew (#145)
  • 9c9e491 - Lock down dependencies with a package-lock.json file

For more details, please see the CHANGELOG.