04-09-2021 00:22
04-09-2021 00:22
Hi, I have called api to get access token using refresh token it give this response. I am not able to get new access and refresh token.
04-13-2021 14:36
04-13-2021 14:36
Hi @Nithiyananth,
Welcome to the forums!
You're likely using an invalid refresh token. When your access token expires, your application should use the refresh token it obtained alongside the access token after the initial consent, to obtain a new access token and refresh token pair. Your application should store the new set of tokens and discard the older set of tokens to avoid encountering these errors.
Are you able to check your logs to see the new refresh token you should have saved after querying the token refresh endpoint? If you no longer have access to that refresh token, you'll need to revoke access to your application at https://www.fitbit.com/settings/applications then go through the authorization flow again to obtain a new set of tokens.
I hope this helps. Let me know if you have any additional questions.