In the previous version of Blazor I could use:
await SignOutManager.SetSignOutState();Navigation.NavigateTo($"authentication/logout");Now, I have to use:
Navigation.NavigateToLogout("authentication/logout");But the following code redirects me to Not found. Should I create a page "authentication/logout" or what?
@using Microsoft.AspNetCore.Components.WebAssembly.Authentication@inject NavigationManager Navigation<AuthorizeView><Authorized><button class="nav-link btn btn-link" @onclick="BeginLogOut">Log out</button></Authorized><NotAuthorized><a href="Account/Login">Log in</a></NotAuthorized></AuthorizeView>@code{ private void BeginLogOut() { Navigation.NavigateToLogout("authentication/logout"); }}There is no single example anywhere :/
