Closed
Description
Describe the bug
The Blazor WASM AuthorizationMessageHandler
stores the last AccessToken and will update it only if the AccessToken will expire in less than 5 minutes. If the user changes in between the old access token will still be used. Related code:
The AuthorizationMessageHandler
should react to the AuthenticationStateChanged
of the AuthenticationStateProvider
and remove the last cached token.
To Reproduce
Log in to a Blazor WASM application that uses the AuthorizationMessageHandler
, log out and log in with another user. The access token from the first user will be used.
Further technical details
- All Blazor WASM versions