I get a 405 error on this code. that was the code that came with chosing identity at project creation. The login and everything else work fine. I am connected in an account.
My menu doesn't even allow the log out option if I'm not in an account. I can't debug the code either
ClaimsPrincipal user, SignInManager<ApplicationUser> signInManager, [FromForm] string returnUrl) => { await signInManager.SignOutAsync(); return TypedResults.LocalRedirect($"~/{returnUrl}"); });