示例#1
0
        public IDataResult <AccessToken> CreateAccessToken(User user)
        {
            var claims      = _userService.GetClaims(user.Id);
            var accessToken = _tokenHelper.CreatToken(user, claims.Data);

            return(new SuccessDataResult <AccessToken>(accessToken, Messages.AccessTokenCreated));
        }