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
phunction
3 years agoExplorer | Level 4
Refresh Token Simulate
Hi, I am trying to test handling refresh tokens, but my machine never seems to get the expired token error but clients are.
Is there a way to force the dropbox token to expire or a test server that will let me manually expire tokens, etc for testing?
There isn't a way to force a short-lived access token to expire ahead of schedule, but I'll pass this along as a feature request. I can't promise if or when that might be implemented though. So, to test the actual 'expired_access_token' error for any particular short-lived access token, you would need to wait until it expires. (And for reference, you can identify short-lived access tokens by the "sl." prefix. If it does not start with "sl.", it is not a short-lived access token.)
In any case, I'll be happy to help with any issues you're having with the Dropbox API if something isn't working as expected, but I'll need some more information. If so, please share:
- the name and version number of the platform and SDK/library you are using, if any
- the steps to reproduce the issue, including relevant code snippet(s), but don't include any access or refresh token(s)
- the full text of any error or unexpected output
- Greg-DBDropbox Staff
There isn't a way to force a short-lived access token to expire ahead of schedule, but I'll pass this along as a feature request. I can't promise if or when that might be implemented though. So, to test the actual 'expired_access_token' error for any particular short-lived access token, you would need to wait until it expires. (And for reference, you can identify short-lived access tokens by the "sl." prefix. If it does not start with "sl.", it is not a short-lived access token.)
In any case, I'll be happy to help with any issues you're having with the Dropbox API if something isn't working as expected, but I'll need some more information. If so, please share:
- the name and version number of the platform and SDK/library you are using, if any
- the steps to reproduce the issue, including relevant code snippet(s), but don't include any access or refresh token(s)
- the full text of any error or unexpected output
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,911 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!