Пример #1
0
        public async Task <IActionResult> Login([FromBody] UserValidateInputDto userDto)
        {
            var userValidateDto = await _accountService.Login(userDto);

            return(new OkObjectResult(new
            {
                Token = JwtTokenUtil.CreateAccessToken(_jwtConfig, userValidateDto),
                RefreshToken = JwtTokenUtil.CreateRefreshToken(_jwtConfig, userValidateDto)
            }));
        }