Corrige la deconnexion du compte joueur

This commit is contained in:
2026-04-15 21:42:40 +02:00
parent 1d18a070e5
commit 655637072c
2 changed files with 8 additions and 25 deletions

View File

@@ -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)