@okta/okta-auth-js
Advanced tools
Changelog
2.0.1
authClient.tokenManager.get('accessToken')
was called.Changelog
2.0.0
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
url
from the issuer
to simplify client setup.refresh
methods on the token
and tokenManager
objects to renew
.