Example #1
0
        public IActionResult Logout()
        {
            var userId = long.Parse(User.Claims.First(c => c.Type == CustomClaimTypes.UserId).Value);

            _jwtAuthManager.RemoveRefreshTokenByUserId(userId);

            return(NoContent());
        }