Files
decePubClient/Pages/Logout.razor
T

20 lines
567 B
Plaintext
Raw Permalink Normal View History

@page "/logout"
2022-12-15 20:03:40 +01:00
@inherits LocalizableComponentBase
<Title>@Localizer["Logout"]</Title>
2022-02-14 01:51:52 +01:00
<section class="block relative w-full h-full neo-inset neo-xs rounded-xl">
2022-02-14 01:51:52 +01:00
<div class="flex flex-col gap-4 p-4 md:p-5 w-full h-full absolute overflow-y-auto">
2022-12-15 20:03:40 +01:00
<h1 class="text-center">@Localizer["Logging out..."]</h1>
2022-02-14 01:51:52 +01:00
</div>
</section>
@code {
// Revokes every persona token the client holds, ends the root's session and clears the local data.
2022-02-14 01:51:52 +01:00
protected override async Task OnInitializedAsync()
{
await CascadingState.SignOut();
Navigation.NavigateTo("login");
2022-02-14 01:51:52 +01:00
}
}