public async Task <IActionResult> Logout() { await _signInManager.Logout(); var identity = (ClaimsIdentity)this.User.Identity; var userEmail = identity.FindFirst(JwtRegisteredClaimNames.Sub).Value; var user = await _userManager.GetUserByEmail(userEmail); _logger.LogTrace("User logged out"); return(Ok()); }
public ActionResult Logout() { _signInManager.Logout(); return(Redirect("/")); }
public async Task Logout() { await _signInManager.Logout(); _logger.LogTrace("User logged out"); }
public async Task Logout() { await _signInManager.Logout(); }