04-26-2017 04:19 - edited 04-26-2017 04:20
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

Jogger
1
0
0
04-26-2017 04:19 - edited 04-26-2017 04:20
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
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"}
API Endpoint: "https://api.fitbit.com/oauth2/token"
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

1 REPLY 1
04-29-2017 11:02
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post



Moderator Alum
1254
166
1511
04-29-2017 11:02
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
@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.

