Last active
February 21, 2021 08:00
-
-
Save fmshk97/6d4a88f969c2cf33c037847704b40b99 to your computer and use it in GitHub Desktop.
Logout API in AccountsController
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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