node-strava/node-strava-v3

Missing Field activity:read_permission

JonasNicoletti opened this issue · 1 comments

Hello everyone,

I am missing the possibility to request an access_token with other scopes than scope: read
In my eyes it should be possible when requesting the token in outh.getToken to add an addition parameter where you can say for which scope you are asking the token.
Do you think it is possible to add this feature? Otherwise how do you do strava.athlete.listActivities without getting an 401 and this message {\"message\":\"Authorization Error\",\"errors\":[{\"resource\":\"AccessToken\",\"field\":\"activity:read_permission\",\"code\":\"missing\"}]}"

scopes are requested in oauth.getRequestAccessURL, not oauth.getToken().

You can review our source code and also http://developers.strava.com/docs/authentication/