コード例 #1
0
        public ActionResult LogoutUser()
        {
            var userID = User.FindFirst(ClaimTypes.NameIdentifier)?.Value ?? string.Empty;

            _jwtAuthManager.RemoveRefreshTokenByUserID(userID);
            _logger.LogInformation($"User [{userID}] logged out the system.");
            return(Ok());
        }