Forum Discussion

KostyaVasilyev's avatar
KostyaVasilyev
New member | Level 2
2 years ago
Solved

DropBox API - token is short lived, why?

I'm trying to set up access to DropBox for some "enterprisey" tasks (we have a shared DropBox workspace where I work).   I've registered an OAuth2 app and went through https://www.dropbox.com/oauth...
  • Greg-DB's avatar
    2 years ago

    Dropbox is no longer offering the option for creating new long-lived access tokens. Dropbox is now issuing short-lived access tokens (and optional refresh tokens) instead of long-lived access tokens. You can find more information on this migration here. This applies whether the app is in development or production status.

    Apps can still get long-term access by requesting "offline" access though, in which case the app receives a "refresh token" that can be used to retrieve new short-lived access tokens as needed, without further manual user intervention. You can find more information in the OAuth Guide and authorization documentation. There's a basic outline of processing this flow in this blog post which may serve as a useful example.