You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.
Forum Discussion
lumenstech
10 months agoExplorer | Level 3
regarding the generation of a lifetime access token
key in C#.NET platform. Despite my efforts, I have encountered persistent errors indicating that the generated key is not supported.
I have extensively utilized various code snippets for this purpose, but the issue persists. Could you kindly provide guidance on the correct methodology or code snippet to generate a lifetime access token key using C#?
Your expertise and assistance in resolving this matter would be immensely appreciated.
- Greg-DBDropbox Staff
Dropbox is no longer offering the option for creating new long-lived access tokens. Dropbox is now issuing short-lived access tokens (and optional refresh tokens) instead of long-lived access tokens. You can find more information on this migration here.
Apps can still get long-term access by requesting "offline" access though, 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.
When you use the official Dropbox API v2 .NET SDK, you do not need to implement all of the code for this process yourself. The SDK will do most of the work for you. You can find examples of using this here. For instance, you can find an example of getting and using a refresh token in the OauthBasic example (non-PKCE, meant for server-side apps) as well as in the OAuthPKCE example (PKCE, meant for client-side apps).
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,888 PostsLatest Activity: 19 hours agoIf 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!