Closed
Description
Is there an existing issue for this?
- I have searched the existing issues
Describe the bug
I have simple minimal api that signout and doing redirect, it always return EmptyHttpResult for no reason
It is funny because i have login endpoint with minimal api that do RedirectResult but it works
Expected Behavior
returning TypedResult.Redirect should just work
Steps To Reproduce
internal static async Task Post(HttpContext httpContext)
{
if (httpContext.User.Identity.IsAuthenticated)
{
await httpContext.SignOutAsync(CookieAuthenticationDefaults.AuthenticationScheme);
}
return TypedResults.Redirect("/");
}
Exceptions (if any)
No response
.NET Version
No response
Anything else?
No response