cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
If you’ve changed your email address, now's the perfect time to update it on your Dropbox account and we’re here to help! Learn more 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: 

Re: OAuth 2.0 Access Token Validity

OAuth 2.0 Access Token Validity

Amit1
New member | Level 1

I have been trying to use the dropbox apis through OAuth 2.0 authentication support. I found that the access token generated through the authorize and token end points seems to be valid for over 2 days. I had expected it to expire after a while (say couple of hours) assuming that to be a standard.

I would like to know the validity period of the access token. Can someone share provide some inputs?
Thanks!

4 Replies 4

Steve M.
Dropbox Staff

See https://www.dropbox.com/developers/support#token-expiration.

Access tokens effectively don't expire.

Amit1
New member | Level 1

Isn't it a security issue if the token don't expire? http://stackoverflow.com/a/7035926/537503

Steve M.
Dropbox Staff

Because Dropbox does a database lookup for each request, our bearer tokens are immediately revocable by code or by the user (via https://www.dropbox.com/account/security). We reviewed our OAuth 2 implementation with respect to the issues raised in that Stack Overflow answer as well as many other sources, and we're comfortable with what we have from a security perspective.

Amit1
New member | Level 1

🙂

Need more support?