Curious about A, B, C, and D drives? Learn what they mean and how to use them effectively with Dropbox in this handy guide! - check it out now!

Forum Discussion

Vicne's avatar
Vicne
Explorer | Level 4
5 years ago
Solved

Dropbox not sending refresh_token using new OAuth2 flow

Hi,   (Sorry I first posted this as a reply to this "solved" topic, which was a bad idea because it's mostly unrelated)   I'm developing a "native" app (called Ginj), and started Dropbox inte...
  • Greg-DB's avatar
    5 years ago

    We recommend just using the official SDKs whenever possible, as they'll do most of the work for you, but you can certainly use the HTTPS endpoints directly if you'd like.

     

    You can find information on this in the authorization documentation, as well as the new OAuth Guide.

     

    Most apps currently default to long-lived access tokens, but if you want to start using short-lived access tokens, you should set the 'token_access_type' parameter on your /oauth2/authorize URL. You can find information on using that in the /oauth2/authorize documentation. Specifically, to get short-lived tokens with a refresh token, you should set it to "offline".