One month down in 2025: How are your resolutions coming along? Check out how to get back on track here.
Forum Discussion
bnfofficial
10 months agoNew member | Level 2
0Auth2 keeps expiring despite refresh token
Hello everyone! I am not a developer by any means, but with the help of ChatGPT I managed to create a Google App Script that lets me mirror certain Google Drive Folders into my Dropbox. It almost wor...
Greg-DB
10 months agoDropbox Staff
Dropbox currently offers short-lived access tokens, which expire after a few hours, and refresh tokens, which don't expire.
If you need continuous access without repeated manual interaction, you'll need to request "offline" access in order to get a refresh token. The refresh token can be used to programmatically retrieve new short-lived access tokens whenever needed.
We can't offer support for this particular "OAuth2.createService" utility as it's not written by Dropbox, so I suggest referring to the documentation and support resources for that for information on how to use and troubleshoot it. For instance, it's unclear if it automatically requests offline access in order to receive a refresh token (and I don't see your code doing so explicitly), so you should check on that to make sure you're getting, storing, and re-using a refresh token.
About Discuss Dropbox Developer & API
Make connections with other developers803 PostsLatest Activity: 7 hours ago
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!