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
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

