Created
February 21, 2021 10:00
-
-
Save fmshk97/7687a1bc1931b941c750564a181c455f 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
[HttpGet] | |
[Authorize] | |
public async Task<IActionResult> Details() | |
{ | |
var loggedInUserId = User.FindFirst(ClaimTypes.NameIdentifier).Value; | |
return Ok(await _userManager.FindByIdAsync(loggedInUserId)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment