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

Problem with obtaining new access token

Hi there, 

We are using Authorization Code Flow for obtaining access and refresh tokens. Also to migrate from Auth1 to Auth2, we deployed new version of integration with migration functionality on 14.07.

After deployment we found that some accounts was able to migrate (get new access and refresh token) and get information from fitbit (using new access_token), but on the next refresh token call, failed with 400 code:

 

Request: POST https://api.fitbit.com/oauth2/token?grant_type=refresh_token&refresh_token={refresh token that were provided during migration process}
Response: [400] {"errors":[{"errorType":"invalid_grant","message":"Refresh token invalid: {refresh token that were provided during migration process}. Visit https://dev.fitbit.com/docs/oauth2 for more information on the Fitbit Web API authorization process."}],"success":false}

 

After that each time we are trying to sync data we can not refresh account with the same exception.

Can you please help us with this problem:

Migration time: July 15th 2016, 15:19:24.418 UTC

First try to refresh token: July 16th 2016, 05:42:03.026 UTC

If you need additional information, just let me know.

Thanks in advance, 

Best Answer
0 Votes
0 REPLIES 0