I'm getting an invalid refresh token when I try to migrate a user.
{"errors":[{"errorType":"invalid_grant","message":"Refresh token invalid: 0ac571b96816d64b3d54c138936bcd9f:855fd0c5bcc48b596ba1625d712c0826. Visit https://dev.fitbit.com/docs/oauth2 for more information on the Fitbit Web API authorization process."}],"success":false}
anything obvious here?
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.
{"errors":[{"errorType":"invalid_grant","message":"Refresh token invalid: 762c68849ade1bef10c91005fc6752a1:ffb42561e91d48ccc88bc88f3639d5e4. Visit https://dev.fitbit.com/docs/oauth2 for more information on the Fitbit Web API authorization process."}],"success":false}
I tried a more current user. The previous one was from a while ago but this one is recent. Do I have to use the clientid from the application they are currently tied to?
Best AnswerI figured it out. I appears that you have to use the same application that the user was registered under. This is going to be challenging for use as all of our oAuth v1 participants use different URLs to log in and only one application in the fitbit.com admin. oAuth v2 requires that the redirect_uri match the passed in redirect_uri.. Any suggestions?
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.
Correct—the upgrade flow is for the application the person authorized. If a person has authorized App A, App B can't use access tokens belonging to App A.
You can specify multiple redirect URIs in the https://dev.fitbit.com/apps settings. Put one redirect URI per line.
Best Answer