I am developing a Blazor webassembly pwa, locally running the project will store the user in the session storage and keep them there.
But when I deploy to Azure (linux app service) the session/local storage is not persisting. So when navigating to a different page (within my application) or refreshing the page the oidc.user variable is removed from the session storage and therefor my user is logged out.
- Locally it's working and the key pair will persist.
- When deployed to Azure the same key will be added after loggin in succesfully but after a redirect it's removed.
So the real question is: Why is my session storage working locally but does it remove the oidc.user key pair after a redirect, Causing the user to be logged out.
@page
but within the same blazor application? Is there a reason for not using local storage to persist the token? – Just the benno