11-23-2016 23:05 - edited 11-23-2016 23:09
11-23-2016 23:05 - edited 11-23-2016 23:09
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
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?
11-29-2016 16:55
11-29-2016 16:55
@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.