NicklasWallgren / PokemonGoAPI-PHP

Pokemon Go API PHP library
BSD 2-Clause "Simplified" License
130 stars 51 forks source link

Login with google API #138

Closed vntopcoders closed 7 years ago

vntopcoders commented 7 years ago

I try to integrate Google API to login to my system, sometimes its works, but sometimes we got the error: 2016/08/28 04:36:12 [error] 3875#0: *431 FastCGI sent in stderr: "PHP message: PHP Notice: Undefined property: stdClass::$id_token in /usr/share/nginx/html/poke/src/Authentication/Managers/Google/AuthenticationCode/Parsers/OauthTokenParser.php on line 44 PHP message: PHP Notice: Undefined property: stdClass::$expires_in in /usr/share/nginx/html/poke/src/Authentication/Managers/Google/AuthenticationCode/Parsers/OauthTokenParser.php on line 45 PHP message: PHP Notice: Undefined property: stdClass::$refresh_token in /usr/share/nginx/html/poke/src/Authentication/Managers/Google/AuthenticationCode/Parsers/OauthTokenParser.php on line 46"

DrDelay commented 7 years ago

You'd have to provide some of your code, I think the problem lies in there rather than this API; like you passing something invalid instead of a proper AccessToken to Factory::create.