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
Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.
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 AnswerFollowing 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
Hi,
Any updates on this ?
Regards,
Aditya