You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.
Forum Discussion
Thomi
5 years agoExplorer | Level 4
No Refresh token is returned
Hey,
I'm trying to figure out how the refresh token oauth2 process is working.
When I navigate to
https://www.dropbox.com/oauth2/authorize?client_id=<client_id>&token_access_type=offline&response_type=code
and grant premission I only get an oauth2 code but no refresh token. What am I doing wrong?
Do I have to enable something in the app center?
When you swap that code for an access token(https://api.dropbox.com/oauth2/token), the resulting payload will contain an
access_token
and arefresh_token
, which can be stored and used to issue a new access token later.
- TaylorKrusenDropbox Staff
Is this a newly created scoped app or an app that you're migrating? The OAuth Guide or blog post, Migrating App Permissions and Access Tokens, might be useful resources here.
In your app's settings there is an OAuth 2 section. Is the "Access token expiration" set to "Short-lived"?- ThomiExplorer | Level 4
Its a new scoped app and "Access token expiration" is set to "Short-lived".
- TaylorKrusenDropbox Staff
When you swap that code for an access token(https://api.dropbox.com/oauth2/token), the resulting payload will contain an
access_token
and arefresh_token
, which can be stored and used to issue a new access token later.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,910 PostsLatest Activity: 3 days agoIf you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X or Facebook.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!