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

luigia's avatar
luigia
Explorer | Level 4
4 years ago

Token and Permission Updates

Hi,

I receive the mail from dbx about "Token and Permission Updates" to explain me that the Dropbox OAuth flow will no longer return long-lived access tokens. I'm using the lib

<groupId>com.dropbox.core</groupId>
<artifactId>dropbox-core-sdk</artifactId>
<version>3.1.1</version>

I see now there is 3.1.5 version, so I will update it for sure.

 

In my flow, I call the

/oauth2/authorize
then
/oauth2/token
and
/2/users/get_current_account using the access token returned by the previous call.

So, now this is a long-lived access token, but from sep this will be a short-lived access token, is it right?
What should I do? Should I check the expiration time of this access token, and then ask which api for having the long-lived one?

Or should I recall /oauth2/token every time?

Is there some example I can see ?

thanks a lot

 

 

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

5,915 PostsLatest Activity: 6 hours ago
333 Following

If 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!