You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
In some cases, the client might not get a RefreshToken when requesting one, e.g. because the OP does not provide one or the user did not consent to the "offline_access" claim. In this case the client will still attempt a refresh with the string value "undefined" as RefreshToken, likely because in auth-state.service.ts#L77decodeURIComponent() is called on the Token without a check if the token actually exists. If the token is undefined, the method will return the string "undefined".
To Reproduce
Configure the client with useRefreshToken: true and silentRenew: true
Ensure the server does not actually return a RefreshToken
Wait for the AccessToken to expire
The client will attempt a token request with grant_type=refresh_token and code=undefined.
Expected behavior
If no RefreshToken is present, no attempt to refresh should be made.
The text was updated successfully, but these errors were encountered:
Describe the bug
In some cases, the client might not get a RefreshToken when requesting one, e.g. because the OP does not provide one or the user did not consent to the "offline_access" claim. In this case the client will still attempt a refresh with the string value "undefined" as RefreshToken, likely because in auth-state.service.ts#L77
decodeURIComponent()
is called on the Token without a check if the token actually exists. If the token is undefined, the method will return the string "undefined".To Reproduce
useRefreshToken: true
andsilentRenew: true
Expected behavior
If no RefreshToken is present, no attempt to refresh should be made.
The text was updated successfully, but these errors were encountered: