Exemple #1
0
        public async Task <TokenCheckParam> Validate(TokenData token)
        {
            var tokenCheckParam = new TokenCheckParam();


            //Localのtoken情報参照
            if (token == null)
            {
                tokenCheckParam.HasError       = true;
                tokenCheckParam.NoExistMyToken = true;
            }
            else
            {
                var tokenData = token;
                //DBのtokenと照合するAPIのコール
                tokenCheckParam = await _restService.CheckTokenDataAsync(TokenConstants.OpenTokenEndPoint, tokenData);
            }

            return(tokenCheckParam);
        }