示例#1
0
        public IDataResult <AccessToken> CreateAccessTokenForUser(User user)
        {
            var accessToken = _tokenHelper.CreateTokenForUser(user);

            return(new SuccessDataResult <AccessToken>(accessToken, SecurityMessages.LoginSuccessful));
        }