Forum Discussion

empowerhumanity's avatar
empowerhumanity
New member | Level 2
2 years ago

Need help with Access Token!

Hello,

 

I need help with this Access Token thing which I have to regenerate every time I use my app, 

I know Refresh Token has been mentioned in 1 or 2 other posts but it is either I cannot comprehend what they are saying, or maybe my brain is just not functioning well right now, please if anyone can provide me with steps for solving this issue I would highly appreciate it, I just need something permanent to use or at least the Token be valid for a few days, not for each time I run my app which is really inconvenient, 

 

Thank you very much in advance!

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Staff rankDropbox 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, so you would not need to manually reauthorize the app each time. 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

Node avatar for Discuss Dropbox Developer & API
Make connections with other developers804 PostsLatest Activity: 3 days ago
217 Following

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!