12-01-2015 14:24
12-01-2015 14:24
Hi,
I am using the implict grant flow to generate my token. I get redirected to my app with the token but when I try and make API call
curl -X GET "https://api.fitbit.com/1/user/-/profile.json" -H "Authorization: Bearer XXXXX"
{"errors":[{"errorType":"invalid_token","message":"Access token invalid or expired: XXXXX. Visit https://dev.fitbit.com/docs/oauth2 for more information on the Fitbit Web API authorization process."}],"success":false}
My app is setup as client.
I am using the node passport module for OAuth.
12-02-2015 10:32
12-02-2015 10:32
@rajeevramani wrote:
Hi,
I am using the implict grant flow to generate my token. I get redirected to my app with the token but when I try and make API call
curl -X GET "https://api.fitbit.com/1/user/-/profile.json" -H "Authorization: Bearer XXXXX"
{"errors":[{"errorType":"invalid_token","message":"Access token invalid or expired: XXXXX. Visit https://dev.fitbit.com/docs/oauth2 for more information on the Fitbit Web API authorization process."}],"success":false}
My app is setup as client.
I am using the node passport module for OAuth.
Can you post the invalid or expired token you were trying to use?