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

Token has expiring in every 24 hours even i passing 'expires_in' => 315360

Hi,
 
Token has expiring in every 24 hours even i passing 'expires_in' => 31536000 parameter.
 
I have making request as following data:
Header: {"Authorization"=>"Basic MjI3UkxWOmQ3OWRhYmU3ZTNlY2E1MzlhZWNhNGVmNjliNzJmNWIy\n", "Content-Type"=>"application/x-www-form-urlencoded"} 
 
 
Parameters: ('clientId' => 'XXXXX', 'grant_type' => 'refresh_token', 'refresh_token' => refresh_token, 'expires_in' => 31536000)", "Content-Type" => "application/x-www-form-urlencoded"}
 
Please Help me to get Long live Token.
 
Thanks
Clark
Best Answer
0 Votes
1 REPLY 1

@Clark_Terry You would need to use Implicit Grant Flow if you want a token to last that long. Looks like you're refreshing a token so your only options for 'expires_in' is either 1 hour or 8 hours.

Andrew | Community Moderator, Fitbit

What motivates you?

Best Answer
0 Votes