Discuss Dropbox Developer & API
Hi,
I found changes in OAuth2 for API, so the authorization could be done with offline access, ascuirung both Access and Refresh tokens. This part is OK, with ProcessCodeFlow method in SDK. But could not find any method to refresh access token using saved refresh token.
Can you please help me with this case?
Thanks,
I can't find any example of how to let the SDK take care of the token refreshing? I need to do this independently of user input.
Do I have to hit this method:
public DropboxClient( string oauth2RefreshToken, string appKey, string appSecret, DropboxClientConfig config )
Do I use the same refresh token every time?
@jon p Yes, using that method will let the SDK take care of this for you automatically in the background. And yes, you should use the same refresh token for a given user. The refresh token can and should be used repeatedly. It does not expire on its own (though it can be revoked by the user or app).
Thanks for the reply, I'll try it out.
Hi there!
If you need more help you can view your support options (expected response time for a 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!