Blazor – LocalStorageService not working in DelegatingHandler
I am using the Blazored.LocalStorage library to store JWT tokens returned from an API’s login method. I then use it again on every other API call to retrieve it and send it as a bearer token. I am moving my previously functional hard coded HTTP clients to using the Refit library as well as a DelegatingHandler for adding the JWT token to the Authorization header of every request. The handler looks like this :