Fitbit token refresh fails

I use the Fitbit integration and have no issues setting it up and fetching data. Unfortunately, the token refresh always fails and I have to reconfigure and reauthorize the integration with Fitbit every day or so.

I have an addon script that fetches additional Fitbit data and sends it to HA via MQTT and am encountering the same problem there:

{
  "errors": [{
    "errorType": "invalid_grant",
    "message": "Refresh token invalid: xxxxxx. Visit https://dev.fitbit.com/docs/oauth2 for more information on the Fitbit Web API authorization process."
  }],
  "success": false
}

Is this an issue anyone else is having?

https://old.reddit.com/r/homeassistant/comments/1jelhgt/fitbit_token_refresh_fails/

Hi,
You may find these tips helpful Common Solutions

That’s great! This section stands out:

Do they mean “each user may only have one active refresh token [per application]” or “each user may only have one active refresh token [per Fitbit account]”?

I’ve created 2 applications: one for the HA integration and one for the extra script. I guess I’ll see what they mean by “one active refresh token”.

Yeah that is how I understand it. Please report back what you find!

Yeah, I needed to have one Fitbit application per script. Appreciate the doc link!