Blazor WASM - Authentication occurs after content is displayed

Tim Cadieux 21 Reputation points

I have successfully implemented the Auth process for Blazor WASM using this article -

The strange behavior I'd like to correct is that the Index pages appears for a second or 2 and THEN i'm redirected to the Login page, where I am Authenticated and returned to the Index.

Is there a way to have the Auth process kick in sooner?

A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,372 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Prathamesh Shende 376 Reputation points

    The problem is that Authentication takes first load then other contents
    It you enabled the authentication in your project.
    It because you add authenticationVIew in App.razor.

    I don't think there is any solution on this right now.

    0 comments No comments