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

Oauth 2.0 access token validity period

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.

Best Answer
0 Votes
2 REPLIES 2

@PKT in what situations are you seeing refresh tokens fail to retrive access tokens? 

Best Answer
0 Votes

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

Best Answer
0 Votes