2025 sparked some incredible conversations across our community 👩💻. Discover the highlights and see what’s ahead in 2026.
Forum Discussion
Sunsing
3 years agoNew member | Level 2
Re-Issuing Invalid Tokens Problem
I have a server hosting an API in asp.net (dotnetnuke DNN), where Dropbox is an integral part of the workflow within it and it works in the background. The problem exists in the ever changing tokens. I'm met with a barrage of expired_tokens when it's working as a scheduled event in the background, transferring files and validating integrity of the data. I have tried to figure out how to use Refresh Tokens, to no avail.
With this website, there is only a single Dropbox account. It acts as a storage bin. Users don't get their own access, it comes from me. However, I am hoping to find an answer so I can re-issue the tokens while doing background processes before the token expires. I have tried
Dim refreshToken = dbx.RefreshAccessToken(Nothing)
and I get response that it cannot be refreshed. I really want to be able to have a token that will not expire. Or a refreshToken process that returns a new token and works.
It's quite frustrating to have to constantly check, as one minute of downtime is catastrophic.
1 Reply
- Greg-DB3 years ago
Dropbox Community Moderator
You can find a working example of getting and using a refresh token to maintain long-term access with the .NET SDK here:
That example shows how you can explicitly call RefreshAccessToken, but that's actually not required. As long as you supply the required credentials as shown there, the SDK itself will automatically perform the refresh in the background for you whenever needed.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
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!