Your workflow is unique 👨💻 - tell us how you use Dropbox 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!
3 Replies
- Greg-DB8 years ago
Dropbox Community Moderator
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.
- slingxshot8 years agoExplorer | 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-DB8 years ago
Dropbox Community Moderator
Yes, that would be the only safe way to do it.
About Dropbox API Support and Feedback
Get help with the Dropbox API from fellow developers and experts.
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!