03-27-2019 06:25
03-27-2019 06:25
Can I set access_token expires_in time for 3-5 yrs or infinite years when we connect for Fitbit for Api access?
Best Answer03-27-2019 17:09
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.
03-27-2019 17:09
Hi @Joy033
If using the Implicit Grant Flow, the maximum lifetime of the access_token is 1 year. Afterwards, a user will need to re-authorize your application.
if using the Authorization Code Grant Flow, the maximum lifetime of the access_token is 8 hours. When the access token expires, you can use the refresh token to obtain a new access_token/refresh_token pair. The user will not need to re-authorize your application. This method of using the refresh token to obtain a new access_token/refresh_token can occur indefinitely in your application.
The Implicit Grant Flow does not provide you with a refresh_token.
Best Answer