2025 sparked some incredible conversations across our community 👩💻. Discover the highlights and see what’s ahead in 2026.
Forum Discussion
liu-yuxin98
4 years agoExplorer | Level 3
Re: Oauth2 refresh token question - what happens when the refresh token expires?
May I know what is the " auth_code" here. how can I get it?
authorize_url = auth_flow.start() print("1. Go to: " + authorize_url) print("2. Click \"Allow\" (you might have to log in first).")...
Greg-DB
Dropbox Community Moderator
4 years agoThat's correct, the "auth_code" variable there should contain the "authorization code", which is a single-use code from the app authorization page that the app then exchanges for an access token and optional refresh token, by calling /oauth2/token. I recommend reading the OAuth Guide and authorization documentation for more information.
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!