예제 #1
0
        public async Task <bool> ExchangeCodeForTokenEsi([FromBody] EsiLoginDto dto)
        {
            var oAuthToken = await _tokenService.GetOAuthToken(dto.AccessCode, "Location");

            var oAuthVerify = await _tokenService.GetOAuthVerify(oAuthToken.access_token);

            _characterService.AddOrUpdateEsiCharacterToMainToken(dto.MainCharacterToken, oAuthToken, oAuthVerify);
            return(true);
        }