public IResult TokenExpiration(int userId) { var dataResult = _userService.GetClaims(userId); var userDataResult = _userService.GetById(userId); userDataResult.Data.RefreshToken = _tokenHelper.CreateRefreshToken(); var result = _userService.UpdateRefreshToken(userDataResult.Data); if (result.IsSuccessful) { return(new SuccessResult()); } return(new ErrorResult()); }