03-02-2021 08:42
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

03-02-2021 08:42
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
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.
Accepted Solutions
03-02-2021 14:12
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post



03-02-2021 14:12
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
- Who Voted for this post?
I do see a typo with the parameter name. Try changing "expired_in" to "expires_in" to see if that helps.
Gordon
Senior Technical Solutions Consultant
Fitbit Partner Engineering & Web API Support | Google
03-02-2021 08:43
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

03-02-2021 08:43
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
** I meant Please help on how to change this from 1 day to 1 year

03-02-2021 12:06
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post



03-02-2021 12:06
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
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
Senior Technical Solutions Consultant
Fitbit Partner Engineering & Web API Support | Google

03-02-2021 12:21
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

03-02-2021 14:12
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post



03-02-2021 14:12
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
- Who Voted for this post?
I do see a typo with the parameter name. Try changing "expired_in" to "expires_in" to see if that helps.
Gordon
Senior Technical Solutions Consultant
Fitbit Partner Engineering & Web API Support | Google
03-02-2021 14:19
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

03-02-2021 14:19
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
oops. Didn't see that. It works now.
Thanks a lot!

