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

OAuth2 token length?

ANSWERED

Can I make assumptions about the length of the access and refresh tokens? 

Best Answer
1 BEST ANSWER

Accepted Solutions
Best Answer
5 REPLIES 5

Also, is there an upper bound for the length of each type of token? 

Best Answer

I'd also like to know

Best Answer
0 Votes

@m4olivei You can select the lifetime of the access token.

 

Authorization Code Grant Flow: 1 hour or 8 hours (defaults to 8 hours)

Implicit Grant Flow: 1 day / 1 week / 30 day / 1 year (defaults to 1 day)

 

Refresh tokens do not expire until they've been used, or if the user goes through the authorization process again.

Andrew | Community Moderator, Fitbit

What motivates you?

Best Answer
0 Votes

Thanks, but we're asking about the character length of the token. Is there a defined length of token, or can it vary. Is it different for the access_token and refresh_token?

Best Answer
0 Votes
Best Answer