Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
af429f4
commit ff1dec7
Showing
20 changed files
with
4,946 additions
and
1,486 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# Changelog | ||
|
||
## 2.0.0 | ||
|
||
### Breaking Changes | ||
|
||
* Token retrieval is now asyncronous to account for automatic token renewal. | ||
|
||
```javascript | ||
// 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` | ||
|
||
## Features | ||
|
||
* Clears whitespace around URLs when instantiating the client. | ||
* Infer the `url` from the `issuer` to simplify client setup. | ||
|
||
## Other | ||
|
||
* Renames all `refresh` methods on the `token` and `tokenManager` objects to `renew`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.