Logout redirect.
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
@using Microsoft.AspNetCore.Components.WebAssembly.Authentication
|
||||
@inject NavigationManager navigationManager
|
||||
|
||||
<RemoteAuthenticatorView Action="@Action" LogInFailed="LoginFailed">
|
||||
<RemoteAuthenticatorView Action="@Action" LogInFailed="LoginFailed" LogOutSucceeded="LogoutSuccess()">
|
||||
</RemoteAuthenticatorView>
|
||||
@code {
|
||||
[Parameter] public string? Action { get; set; }
|
||||
@@ -19,5 +19,9 @@
|
||||
return builder => navigationManager.NavigateTo("/error");
|
||||
}
|
||||
|
||||
RenderFragment LogoutSuccess()
|
||||
{
|
||||
return builder => navigationManager.NavigateTo("/");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user