07-08-2016 05:41
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

07-08-2016 05:41
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Hello
I'm using Authorization Code Grant Flow for fitbit authentication. It is working fine but the main concern is life of access token(1 hour).
I have subscribed to fitbit API to fetch the data to my server. To do this,I've to use refresh token to renew the access token. Sometimes if refresh token fails to get the new access token(and I can't use this token again), I have to do the authentication with my users.
It is not good practice to ask users to authenticate again and again with Fitbit if they already done the process once.
I'm in doubt that if there is any better approach to accomplish this.Please suggest.

- Labels:
-
OAuth 2.0
-
Subscriptions API
07-08-2016 11:51
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post



07-08-2016 11:51
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
@PKT in what situations are you seeing refresh tokens fail to retrive access tokens?

07-08-2016 22:46 - edited 07-08-2016 22:47
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

07-08-2016 22:46 - edited 07-08-2016 22:47
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Generally its network timeout.
Also I would like to know if there is more stable way to re-new the access tokens ?(Not in every hour)
Thnaks

