Blazor browser storage: The way to go for authentication cookies? #26225
-
Hi everyone, So the current Blazor preview includes Protected Browser Storage ( #18755 ). My question would now be: Is this the desired way to go from now on to save authentication cookies? At least for Blazor Server, previously to this, you were only able to store authentication data for the lifetime of the circuit (through a combination of Looking forward to your opinions on this. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
No. If your server issues authentication cookies, they should be stored as regular cookies, as they would be by default. Did you try out the built-in auth-enabled project templates? These provide suggested ways of tracking authentication state. |
Beta Was this translation helpful? Give feedback.
-
I'm afraid I don't really know what you're referring to so I'd be grateful if you could nudge me in the right direction. To provide a little background, I'm currently doing some tests for an administration panel for which I've already implemented a custom EDIT:
Ugh yeah it was late and my brain not active anymore, sorry. I now had a look at the individual user account template in VS, however that uses a |
Beta Was this translation helpful? Give feedback.
No. If your server issues authentication cookies, they should be stored as regular cookies, as they would be by default.
Did you try out the built-in auth-enabled project templates? These provide suggested ways of tracking authentication state.