Blazor: Properly resolve scoped service from App.razor (.NET 8)
I am following this example on passing tokens from HttpContext
to components in a SSR application. It mentions the following:
Blazor WebAssembly SSR JWT Tokens Authentication on server side rendering
I want to use jwt tokens auth scheme in my blazor app with global auto interactivity. Content of page is dependant on current auth state and I want to render something else when user is authorized. My problem referes to first render of page on server. How can I determine if user who made request is authorized? I feel like I have to use cookie authorization to store auth token and also send it with refresh page request.