03-14-2016 08:15
03-14-2016 08:15
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 ?
03-14-2016 08:43
03-14-2016 08:43
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.
03-14-2016 09:26 - edited 03-14-2016 09:35
03-14-2016 09:26 - edited 03-14-2016 09:35
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
03-16-2016 12:14
03-16-2016 12:14
Hi,
Any updates on this ?
Regards,
Aditya