Esempio n. 1
0
        public async Task <ActionResult> LogoutAsync(string id)
        {
            if (!Int32.TryParse(id, out int userId))
            {
                return(new UnauthorizedResult());
            }
            await _refreshTokenRepository.DeleteAllAsync(userId);

            return(new NoContentResult());
        }