public async Task <IActionResult> Logout() { await _signInManager.SignOutAsync(); return(RedirectToAction("Index", new { success = 1 })); }
public async Task <IActionResult> Logout() { await _passwordlessSignInManager.SignOutAsync(); return(RedirectToAction("Index", new { success = "You have been logged out." })); }