From a75957ef9ee4d6c83017523a9f61025303105ee4 Mon Sep 17 00:00:00 2001 From: Frederik Prijck Date: Tue, 20 Dec 2022 11:59:43 +0100 Subject: [PATCH 1/2] Update Changelog to include note for v5.1.1 --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1a22d315..1c6a4f2f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,8 @@ **Fixed** - Support promise based tokenGetter in JwtHelperService [\#748](https://github.com/auth0/angular2-jwt/pull/748) ([frederikprijck](https://github.com/frederikprijck)) +**Note**: this fixes incorrect behavior that currently exists in the SDK when using async token retrieval, but causes a breaking change in terms of the types, as `decodeToken` now returns `T | Promise` instead of just `T`. Promises have always been supported, but the API never properly considered for that in the `decodeToken` method. + ## Version [5.1.0](https://github.com/auth0/angular2-jwt/tags/v5.1.0) [Full Changelog](https://github.com/auth0/angular2-jwt/compare/v5.0.2..v5.1.0) From cbcb1458aa03e07aba06cba9e346c04430cb306d Mon Sep 17 00:00:00 2001 From: Frederik Prijck Date: Tue, 20 Dec 2022 12:16:02 +0100 Subject: [PATCH 2/2] Update CHANGELOG.md --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1c6a4f2f..9422f669 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,7 +6,7 @@ **Fixed** - Support promise based tokenGetter in JwtHelperService [\#748](https://github.com/auth0/angular2-jwt/pull/748) ([frederikprijck](https://github.com/frederikprijck)) -**Note**: this fixes incorrect behavior that currently exists in the SDK when using async token retrieval, but causes a breaking change in terms of the types, as `decodeToken` now returns `T | Promise` instead of just `T`. Promises have always been supported, but the API never properly considered for that in the `decodeToken` method. +**Note**: this fixes incorrect behavior that currently exists in the SDK when using async token retrieval, but causes a breaking change in terms of the types, as `decodeToken`, `getTokenExpirationDate` and `isTokenExpired` now returns `T | Promise` instead of just `T`. Promises have always been supported, but the API never properly considered for that in the `JwtHelperService`. ## Version [5.1.0](https://github.com/auth0/angular2-jwt/tags/v5.1.0)