Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
bnfofficial
2 years 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
Dropbox Community Moderator
2 years agoDropbox 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 developers
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
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, Facebook or Instagram.
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!