Ejemplo n.º 1
0
        public ActionResult Logout()
        {
            var Email = User.Identity.Name;

            _jwtAuthManager.RemoveRefreshTokenByUserEmail(Email);
            //  _logger.LogInformation($"User [{Firstname}] logged out the system.");
            return(Ok());
        }
Ejemplo n.º 2
0
 public Task LogoutAsync(string userEmail)
 {
     jwtAuthManager.RemoveRefreshTokenByUserEmail(userEmail);
     logger.LogInformation($"User [{userEmail}] logged out the system.");
     return(Task.CompletedTask);
 }