Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Implicit grant flow and expires_in not presetting the value

ANSWERED

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 

 

 

Best Answer
0 Votes
1 BEST ANSWER

Accepted Solutions

@amitbinu51 

 

I do see a typo with the parameter name.   Try changing "expired_in" to "expires_in" to see if that helps.

 

Gordon

Gordon Crenshaw
Senior Technical Solutions Consultant
Fitbit Partner Engineering & Web API Support | Google

View best answer in original post

Best Answer
5 REPLIES 5

** I meant Please help on how to change this from 1 day to 1 year

Best Answer
0 Votes

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

Gordon Crenshaw
Senior Technical Solutions Consultant
Fitbit Partner Engineering & Web API Support | Google
Best Answer
0 Votes

@amitbinu51 

 

I do see a typo with the parameter name.   Try changing "expired_in" to "expires_in" to see if that helps.

 

Gordon

Gordon Crenshaw
Senior Technical Solutions Consultant
Fitbit Partner Engineering & Web API Support | Google
Best Answer

oops. Didn't see that. It works now. 

Thanks a lot!

Best Answer
0 Votes