One month down in 2025: How are your resolutions coming along? Check out how to get back on track here.
Forum Discussion
SimonR27
2 years agoNew member | Level 2
OAuth through Unity or permanent token
Hello, I'm making this post due to some issues I was encountering whilst doing an implementation of the API for an application in the Unity Game Engine. The use of the Dropbox API, is quite simple as it only requires to upload files to a specified folder in my organization's Dropbox, I got the uploading working correctly but ran into issues when trying to implement the authentication on unity, this due to us not using a local host, thus we cannot redirect the user to the page where they authorize, and get a new token. Due to this I tried to inquire about using a permanent token instead as we don't need to log in the user, just to upload a generated file automatically without user input, however i couldn't find much updated information online about how to get a permanent token.
Any help would be appreciated, Thanks in advance
Simon
- DB-Des
Dropbox Engineer
Hi there,
Dropbox does not offer the option for permanent tokens. However, apps can get long-term access by requesting "offline" access, in which case the app receives a "refresh token" that can be used to retrieve new short-lived access tokens as needed, without further manual user intervention. Refresh tokens do not expire automatically and can be used repeatedly. You can find more information in the OAuth Guide and authorization documentation. There's a basic outline of processing this flow in this blog post which may serve as a useful example.
About Discuss Dropbox Developer & API
Make connections with other developers807 PostsLatest Activity: 2 years 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!