cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Want to make sure we keep you updated on the ideas that other users have shared here on the Community? Us too! Check them out over here.

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
1
Ask
2
Comments

Re: Tokens only valid for 4 hours from app console

Re: Tokens only valid for 4 hours from app console

luisdatec
New member | Level 2

Hello Greg!, thanks for your responses, I have read everything because we are updating an APP and before used one token that lived for years, and now is disconnected when I tried again.

 

However, I was trying to increase the expiration date, the default is 14400 seconds. What is the maximum and how can I do ?

 

I was using the parameter max_age but it doesn't work and I set for 28800. Reference is in https://www.dropbox.com/developers/documentation/http/documentation, in the section of /oauth2/authorize.

 

Let me know please,

 

Luis Vargas

Re: Tokens only valid for 4 hours from app console

Greg-DB
Dropboxer

@luisdatec The access token expiration is not configurable. (The max_age parameter is part of OpenID Connect, not a way to set the lifetime on an access token.) When receiving a short-lived access token, the returned 'expires_in' field indicates how long it is valid. If you need access after that you would need to get a new short-lived access token (either by having the user process the authorization flow again, or by using a refresh token).

Need more support?