You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 26, 2025. It is now read-only.
We have a server side Blazor project and looking to add JWT tokens (which are being saved using LocalStorage on login) to all httpclient requests by using a delegatingHandler.
The delegating handler includes the line
var savedToken = await _myLocalStorageService.GetItemAsync("jwt");
where _myLocalStorageService has the constructor
public MyLocalStorageService(ILocalStorageService storage)
Regardless of when the delegating handler gets called, we get the "JavaScript interop calls cannot be issued at this time. This is because the component is being statically rendered. " when calling GetItemAsStringAsync
We have a server side Blazor project and looking to add JWT tokens (which are being saved using LocalStorage on login) to all httpclient requests by using a delegatingHandler.
The delegating handler includes the line
var savedToken = await _myLocalStorageService.GetItemAsync("jwt");
where _myLocalStorageService has the constructor
public MyLocalStorageService(ILocalStorageService storage)
Regardless of when the delegating handler gets called, we get the "JavaScript interop calls cannot be issued at this time. This is because the component is being statically rendered. " when calling GetItemAsStringAsync
Any ideas?
Thanks