We are aware of the issue with the badge emails resending to everyone, we apologise for the inconvenience - learn more here.
Forum Discussion
marcoalt
4 years agoExplorer | Level 4
Java SDK issues with short lived token
Hi there, I need some help to migrate to the short lived token.
Normally I check if I have the token, then call or execute the other doprobx APIs (e.g. file upload):
Auth.startOAuth2Authentic...
Greg-DB
4 years agoDropbox Staff
The startOAuth2PKCE method will automatically use short-lived access tokens and refresh tokens for you. You can find an example of using that method here.
When using that, you should save the "credential" (which contains both the access token and refresh token) instead of just the access token. You can see an example of handling that here.
- vewert4 years agoExplorer | Level 4
Hi, I am also looking to migrate to short-lived token. Thank-you for posting the usage examples.
One question I have is, if I update my code, using startOAuth2PKCE method, will that affect my Access Token Expiration setting in appConsole (currently set to No Expiration) for other apps accessing Dropbox? Basically I just want to make sure that if I start testing with startOAuth2PKCE method, that it won't affect my current apps and users in production, as, in addition to an Android app, I have an iOS app and a Java Desktop app as well (which I plan to migrate later).
- Greg-DB4 years agoDropbox Staff
vewert No, just using the startOAuth2PKCE method will not change the "Access token expiration" setting in the App Console for any of your apps.
- vewert4 years agoExplorer | Level 4
Thanks for your quick response, so using startOAuth2PKCE method with give a Short Term Token, even if my app console is set to No Expiration?
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,877 PostsLatest Activity: 2 hours 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!