Β© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#β€’5mo agoβ€’
62 replies
NotAGenuisGuy

Refresh token on Browser reload

I am trying to implement jwt authentication with refresh token logic for my school project. Refresh tokens are stored in browser HTTP cookies with CORs enabled. They are also stored in Mssql db (I'm thinking to change to redis) in server. My frontend is blazor WASM and my backend is Web API with FastEndpoints. Right now, I can't refresh the refresh token on browser reload. I have implement a refresh token refresh in frontend program.cs in the picture attached.
But, that code is not being run everytime the browser refreshes.

I have also attached the Jwt Authentication State Provider. Any suggestions are welcome as I am still learning on improving my code πŸ™‚
image.png
image.png
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

βœ… Refresh Token + JWT + Identity
C#CC# / help
2y ago
βœ… Refresh token for Identity
C#CC# / help
2y ago
❔ Dropbox Refresh Access Token
C#CC# / help
3y ago
❔ having issues on a reloading script on unity to reload weapons
C#CC# / help
3y ago
Next page