Skip to content

Instantly share code, notes, and snippets.

@fmshk97
Last active February 21, 2021 08:00
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 fmshk97/6d4a88f969c2cf33c037847704b40b99 to your computer and use it in GitHub Desktop.
Save fmshk97/6d4a88f969c2cf33c037847704b40b99 to your computer and use it in GitHub Desktop.
Logout API in AccountsController
[HttpPost]
public async Task<IActionResult> Logout()
{
await HttpContext.SignOutAsync("Cookies");
return Ok("Logout Successful.");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment