示例#1
0
        private IActionResult BuildToken(UserInfo userInfo)
        {
            var tokenObject = _accountManager.BuildToken(userInfo);

            return(Ok(new
            {
                token = tokenObject.Token,
                expiration = tokenObject.Expiration
            }));
        }