Hi, I’m having issue to logout. I’m getting ERR_TOO_MANY_REDIRECTS error.
Here’s the code below.
public ActionResult LogOff() {
HttpContext.GetOwinContext().Authentication.SignOut(CookieAuthenticationDefaults.AuthenticationType);
HttpContext.GetOwinContext().Authentication.SignOut("Auth0");
return RedirectToAction(“login”, “Account”);
}
Any idea why?