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
awb
6 months agoHelpful | Level 7
Invalid access token - across multiple Dropbox Team Spaces
We have suddenly seen an influx of the above error occuring for our customers including our own integrations tests (with no changes in code) I've been looking at the following post, we use PKCE ...
Здравко
6 months agoLegendary | Level 20
Hi awb,
Access tokens expire! (~4 hours live) Did you ensure refresh token accompanying the access token and use it on Dropbox client object initialization?
Also, you should ensure when for some reason refresh token cannot work (when some of the cases you described comes up), your code asks the user to link your application anew. So the user will know what exactly predisposes this behavior (its recent activity).
Hope this gives direction.
- awb6 months agoHelpful | Level 7Hi,
Thanks for the response. Tokens were refreshing fine until around 4pm BST.
Even trying to get a new token with pkce results in the same error.
From code perspective nothing has changed. The app we created is enabled and linked in our Dropbox. As far as I’m aware. Nothing has changed- Здравко6 months agoLegendary | Level 20
awb wrote:
...
Even trying to get a new token with pkce results in the same error.
...I assume that happens on refresh time (despite you don't point it explicitly; correct me if that's not true). That means user's authorization for your application is canceled somehow (using one of the ways you enumerated already). 🤷 That's it.
There is no need something got changed. Just the granting was canceled. In such a situation new authorization has to be initiated from your application side (when catching such a case). 😉 This is the correct way - nothing else you can do, but just inform your users that after deauthorizing application they will need to authorize anew.
Good luck.
- awb6 months agoHelpful | Level 7We also get the same when re authorising our application.
tested this in two of our Dropbox team space accounts that our Dropbox app is installed in. Would be handy return a message to say why it’s invalid eg token revoked etc
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,915 PostsLatest Activity: 5 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!