@page "/logout" @using BlazorFrontend.Providers @using Microsoft.AspNetCore.Components.Authorization @inject AuthenticationStateProvider AuthStateProvider @inject NavigationManager Navigation Logging out...

Signing you out...

@code { protected override async Task OnInitializedAsync() { var jwtProvider = (JwtAuthenticationStateProvider)AuthStateProvider; await jwtProvider.LogoutAsync(); Navigation.NavigateTo("/login"); } }