예제 #1
0
 public IActionResult Logout()
 {
     try
     {
         var userName = User.Identity.Name;
         _jwtAuthManager.RemoveRefreshTokenByUsername(userName);
         return(Ok());
     }
     catch (Exception ex)
     {
         return(Unauthorized(ex.Message));
     }
 }