One month down in 2025: How are your resolutions coming along? Check out how to get back on track here.
Forum Discussion
Astrofrans
2 years agoNew member | Level 2
Programatically generate auth token for nodejs server with javascript SDK
Hi! I've tried to read up on the doc/previous threads here, but couldn't quite figure this one out.. So, I'm building a web application in which I want an image gallery served from a specific D...
- 2 years ago
Astrofrans It's certainly possible to do so; you would just authorize the app for your own account only, and re-use the resulting refresh token for your account. The SDK works the same way regardless of how many accounts actually get connected. And while it's not the intended design pattern, as Здравко indicated, the security concerns are allayed when doing this in server-side apps, where you can keep the refresh token/access tokens secret and not exposed to end-users.
Greg-DB
Dropbox Staff
2 years agoAstrofrans It's certainly possible to do so; you would just authorize the app for your own account only, and re-use the resulting refresh token for your account. The SDK works the same way regardless of how many accounts actually get connected. And while it's not the intended design pattern, as Здравко indicated, the security concerns are allayed when doing this in server-side apps, where you can keep the refresh token/access tokens secret and not exposed to end-users.
Astrofrans
2 years agoNew member | Level 2
Right! Thanks a lot for patience with me here, I think I follow now. I'll probably go down that route then. Thanks again 🙂
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,949 PostsLatest Activity: 54 minutes 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!