Добавьте файлы проекта.
This commit is contained in:
12
PlaylistShared.PWA2123/Pages/Logout.razor
Normal file
12
PlaylistShared.PWA2123/Pages/Logout.razor
Normal file
@@ -0,0 +1,12 @@
|
||||
@page "/logout"
|
||||
@using PlaylistShared.PWA.Services
|
||||
@inject AuthStateProvider AuthProvider
|
||||
@inject NavigationManager Navigation
|
||||
|
||||
@code {
|
||||
protected override async Task OnInitializedAsync()
|
||||
{
|
||||
await AuthProvider.MarkUserAsLoggedOut();
|
||||
Navigation.NavigateTo("/");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user