Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

OAuth 2.0 implicit grant Access Token Request problem

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.

 

 

Best Answer
0 Votes
1 REPLY 1

@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?

Best Answer
0 Votes