Corrige la deconnexion du compte joueur
This commit is contained in:
@@ -291,6 +291,12 @@ app.MapPost("/api/auth/logout", async Task<IResult> (HttpContext httpContext) =>
|
||||
return TypedResults.Ok(AuthSessionResponse.FromUser(new ClaimsPrincipal(new ClaimsIdentity())));
|
||||
});
|
||||
|
||||
app.MapGet("/api/auth/logout/browser", async Task<IResult> (HttpContext httpContext) =>
|
||||
{
|
||||
await httpContext.SignOutAsync(CookieAuthenticationDefaults.AuthenticationScheme);
|
||||
return TypedResults.Redirect("/index.html");
|
||||
});
|
||||
|
||||
app.Run();
|
||||
|
||||
static AdminUserSummaryResponse MapAdminSummary(AdminIdentityUser identity, UserProfileResponse? profile)
|
||||
|
||||
Reference in New Issue
Block a user