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

Getting INVALID REFRESH TOKEN while migrating user from OAuth 1.0 to 2.0

Hi Team,

 

I am getting following response in JSON while I try to get OAuth 2 tokens for user already having OAuth 1 token using Fitbit OAuth 1 to 2 Migration API.

 

{"errors":[{"message":"Refresh token invalid: <some refresh token>. Visit https:\/\/dev.fitbit.com\/docs\/oauth2 for more information on the Fitbit Web API authorization process.","errorType":"invalid_grant"}],"success":false}

 

Can you please let me know how can I get OAuth 2 creds for this user ?

Best Answer
0 Votes
3 REPLIES 3

This is a valid error message when you haven't passed a correct Authorization header. Can you please provide an example of the HTTP request that you are making? Remember to obfuscate the access token secret before sharing here.

Best Answer
0 Votes

Following is the request :



https://api.fitbit.com/oauth2/token?grant_type=refresh_token&refresh_token=c04ddafef16ac2c6de19467f5...



Headers:

Authorization=Basic MjI5OUZKOmMyY2E3MTMzMDZhNDQ4MGY4NzZjMmE4ZjM3YWMwZjBm

Content-Type=application/x-www-form-urlencoded


Best Answer

Hi,

 

 

Any updates on this ?

 

 

Regards,

Aditya

Best Answer