Spaces:
Sleeping
Sleeping
Download BlazorFrontend/Components/Pages/Logout.razor from Yuruyuruu/LibraryManagement: direct link, hf CLI and curl.
- Browser
- Download file 561 Bytes
-
https://huggingface.co/spaces/Yuruyuruu/LibraryManagement/resolve/main/BlazorFrontend/Components/Pages/Logout.razor
- Command line
-
hf download hf://spaces/Yuruyuruu/LibraryManagement/BlazorFrontend/Components/Pages/Logout.razor
-
curl -L -o Logout.razor https://huggingface.co/spaces/Yuruyuruu/LibraryManagement/resolve/main/BlazorFrontend/Components/Pages/Logout.razor
561 Bytes
| "/logout" | |
| BlazorFrontend.Providers | |
| Microsoft.AspNetCore.Components.Authorization | |
| AuthenticationStateProvider AuthStateProvider | |
| NavigationManager Navigation | |
| <PageTitle>Logging out...</PageTitle> | |
| <div class="text-center mt-10"> | |
| <p class="text-slate-600">Signing you out...</p> | |
| </div> | |
| { | |
| protected override async Task OnInitializedAsync() | |
| { | |
| var jwtProvider = (JwtAuthenticationStateProvider)AuthStateProvider; | |
| await jwtProvider.LogoutAsync(); | |
| Navigation.NavigateTo("/login"); | |
| } | |
| } | |