Skip to content

Instantly share code, notes, and snippets.

@mclasson
Created August 3, 2017 09:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mclasson/5a4243e124bdcf821da1725816cd955c to your computer and use it in GitHub Desktop.
Save mclasson/5a4243e124bdcf821da1725816cd955c to your computer and use it in GitHub Desktop.
public async Task<IActionResult> Logout()
{
await HttpContext.SignOutAsync(CookieAuthenticationDefaults.AuthenticationScheme);
return RedirectToAction("Index");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment