03-02-2021 08:42
03-02-2021 08:42
In the fitbit API document, it says that for "Implicit grant flow", you can "Pre-select the desired access token lifetime" by using 'expires_in'.
The response_type I am sending is "token" to specify it is implicit grant flow.
The expires_in I am sending is "2592000".
However, in the authorization page the expiration for the token is preselected to 1 day instead of 1 year.
In authroization page it says,
"Lift by McMaster University would like the ability to access the following data in your Fitbit account. for 1 day"
Please help on how to change this to 1 day to
Answered! Go to the Best Answer.
03-02-2021 14:12
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-02-2021 14:12
I do see a typo with the parameter name. Try changing "expired_in" to "expires_in" to see if that helps.
Gordon
03-02-2021 08:43
03-02-2021 08:43
** I meant Please help on how to change this from 1 day to 1 year
Best Answer03-02-2021 12:06
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-02-2021 12:06
Hi @amitbinu51
Would you please post your authorization URL and obfuscate the values for client_id and redirect_uri for me? I'd like to see the complete URL and their values which a participant would select to display the consent webform.
Thanks!
Gordon
Best Answer03-02-2021 12:21
03-02-2021 14:12
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-02-2021 14:12
I do see a typo with the parameter name. Try changing "expired_in" to "expires_in" to see if that helps.
Gordon
03-02-2021 14:19
03-02-2021 14:19
oops. Didn't see that. It works now.
Thanks a lot!
Best Answer