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

Implicit Flow- Increase expires_in time

I've tried to increase "expires_in" attribute while making the authorize call from this link

https://dev.fitbit.com/apps/oauthinteractivetutorial

The value provided is for 1 year.

 

Ths is the code generated from the details i've entered

https://www.fitbit.com/oauth2/authorize?response_type=token&client_id=227XSF&redirect_uri=http%3A%2F...

 

 

I'm getting the access token but the expires_in always return the same value irresepective what i've mentioned above.

 

This is the response code:

http://localhost/#access_token=eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiI1MlhXQzciLCJhdWQiOiIyMjdYU0YiLCJpc3MiOiJGaXRiaXQiLCJ0eXAiOiJhY2Nlc3NfdG9rZW4iLCJzY29wZXMiOiJ3aHIgd251dCB3cHJvIHdzbGUgd3dlaSB3c29jIHdzZXQgd2FjdCB3bG9jIiwiZXhwIjoxNDc5OTg5NzQyLCJpYXQiOjE0Nzk5NzEzNTR9.Mo-im3z8stiQ5P9n2R438wq1RGSLLCepU2kj6Y0Inho&user_id=52XWC7&scope=sleep+settings+nutrition+activity+social+heartrate+profile+weight+location&token_type=Bearer&expires_in=18388

 

 

 

 

 

Can you please tell us what excatly wrong at my part?

Is this is the issue related with my app only?

 

 

Best Answer
0 Votes
1 REPLY 1

@Techdemo The expires_in value that you're seeing is the remaining time left before your current token expires, so you must have already set it to something. You basically have to go through the Implicit Grant Flow again to be able to set the expires_in value, you can't change it once it's been set. You can revoke access to your app in your Fitbit app settings, then refresh the tutorial to do it over. Change the "Expires In(ms)" value before you click the link.

Andrew | Community Moderator, Fitbit

What motivates you?

Best Answer
0 Votes