One month down in 2025: How are your resolutions coming along? Check out how to get back on track here.
Forum Discussion
slingxshot
8 years agoExplorer | Level 3
Auth Token Question
Hello,
I am using JavaScript API from dropbox. Is there a way to generate a temp token, so it expires after its used once?
I find a permanent token is risky, anyone can just upload anything to my account.
Thanks!
- Greg-DB
Dropbox Staff
No, the Dropbox API doesn't automatically expiring tokens, but I'll be sure to pass this along as a feature request. You can revoke any token on demand though, using authTokenRevoke.
Also, note that the API was designed with the intention that each user would link their own Dropbox account, in order to interact with their own files. However, it is technically possible to connect to just one account. We don't recommend doing so, for various technical and security reasons, such as what you mentioned.
- slingxshotExplorer | Level 3
So it sounds like I will need to do this server side like PHP or Java to hide the token, etc?
Thanks
- Greg-DB
Dropbox Staff
Yes, that would be the only safe way to do it.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,941 PostsLatest Activity: 5 days 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!