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