One month down in 2025: How are your resolutions coming along? Check out how to get back on track here.
Forum Discussion
Laura Ruggeri
4 years agoHelpful | Level 5
Refresh Token without access first time
My app uses long-lived tokens.
I'm migrating the app to use the refresh token.
I generate the url correctly and retrieve the refresh token that I use for subsequent connections.
But to generate the refresh token, even if I pass my apikey, I am prompted to log in to dropbox. is it possible to avoid?
No, whether you're using the OAuth flow to request a long-lived access token or a short-lived access token/optional refresh token, the user needs to manually authorize the app, and they need to be logged in to Dropbox to do so. If they are not already logged in, they will be prompted to log in before they can choose to authorize the app to access their account.
- Greg-DB
Dropbox Staff
No, whether you're using the OAuth flow to request a long-lived access token or a short-lived access token/optional refresh token, the user needs to manually authorize the app, and they need to be logged in to Dropbox to do so. If they are not already logged in, they will be prompted to log in before they can choose to authorize the app to access their account.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,950 PostsLatest Activity: 2 days ago
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!