payments #91

Merged
khwezi merged 2 commits from payments into master 2026-06-07 13:57:16 +02:00
Showing only changes of commit e193aa7c1c - Show all commits
+5 -6
View File
@@ -104,13 +104,12 @@ public static class Api
app.MapGet("/logout", async (HttpContext context) =>
{
var schemesToSignOut = new[] { CookieAuthenticationDefaults.AuthenticationScheme, OpenIdConnectDefaults.AuthenticationScheme, };
await context.SignOutAsync(CookieAuthenticationDefaults.AuthenticationScheme);
string postLogoutRedirectDestination = "/";
await context.SignOutAsync(scheme: null, properties: new AuthenticationProperties { RedirectUri = postLogoutRedirectDestination, });
foreach (var scheme in schemesToSignOut) await context.SignOutAsync(scheme);
await context.SignOutAsync(OpenIdConnectDefaults.AuthenticationScheme, new AuthenticationProperties
{
RedirectUri = "/",
});
});
return app;