-
Notifications
You must be signed in to change notification settings - Fork 485
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Release v5.1.1 decodeToken<T = any>(token?: string): T | Promise<T> #757
Comments
Thanks for reporting. The SDK has always had a public API that made it look like it supported promises to retrieve the token, but it actually didnt, see #747 . This has been fixed in #748 and released with the latest patch version. This could break people, but it's fixing incorrect behavior in the SDK so I believe this breaking change is justified in a patch given it's actualy fixing a bug. In general our rule is to follow semantic versions. But when the SDK currently isn't doing what it's saying it does, I believe we should fix this rather than release a new major version only to ensure the SDK correctly does what it says it does. Important to note tho is that, even though the return type of Promises have always been involved in the |
ok, @frederikprijck thx for reason |
* Support promise based tokenGetter in JwtHelperService * Revert doublequotes * Fix lint issues * Fix tests * fix tests
Thanks again for reporting, I do believe we made a couple of mistakes with this release, apologies. Looking into rectifying through #759, feel free to have a look. |
Publish v5.1.2, which should revert some unnecessary breaking changes, but there are still scenario's that will be broken. But that should be the scenario's that were broken before 5.1.1. as well, and needed the fix in 5.1.1/5.1.2. |
Description
Regresion
Environment
The text was updated successfully, but these errors were encountered: