Closed Geovanek closed 4 years ago
The problem is the new update. May 25, 2018 GET https://www.strava.com/oauth/authorize returns the scope of the eventual token in the response.
The Code is coming with scope together now EX: 1970128947389014f72f8bc5c&scope=view_private
And the &scope=view_private cause erro on $api->tokenExchange($code[1]);
I am not having any problems with the following code. This seems to be more of an error in the implementation and not so much an issue with this repo. Correct?
$token = $api->tokenExchange($code)->access_token;
$api->setAccessToken($token);
A few weeks later this error began to appear to make the athletes' authorization. I can not figure out why.
` stdClass Object ( [message] => Bad Request [errors] => Array ( [0] => stdClass Object ( [resource] => RequestToken [field] => code [code] => invalid )
) `