blob: dd019a122d62421ec45e2d7f9d2c9a7c40a160a1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
@page "/Auth/Logout"
<p>Logging out...</p>
@code {
protected override async Task OnInitializedAsync() {
var client = await BugMineStorage.GetCurrentSessionOrNull();
if (client != null) {
await client.Homeserver.Logout();
}
await BugMineStorage.RemoveToken(await BugMineStorage.GetCurrentToken());
await BugMineStorage.SetCurrentToken(null);
NavigationManager.NavigateTo("/", true);
}
}
|