Hi @andrea.chiarelli ,
Thanks for your great article.
When using an external API for credentials (with JWT) in a Blazor WebApp globally InteractiveAuto mode, I need to create a custom AuthenticationStateProvider
to manage the authentication state. In this scenario, even when using AddAuthenticationStateSerialization
and AddAuthenticationStateDeserialization
, components in Interactive WebAssembly mode attempt to retrieve the authentication state from the GetAuthenticationStateAsync()
method override in the CustomAuthenticationStateProvider
. In other words, they do not utilize the deserialized persistent authentication state.
I read your article, ‘Add Auth0 Authentication to Blazor Web Apps,’ where you used Auth0. However, in my project, I intend to use an external API and JWT for credentials.
Do you have any suggestions or ideas on how to handle this?