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

Omri1984's avatar
Omri1984
Explorer | Level 4
3 years ago

When using the .net sdk with out user interaction, do i need to implement the refresh token method

When using the .net sdk without user interaction, do i need to implement the refresh token method?

or the sdk will refresh it automatically.

 

i know it depend on the request in the auth "offline" or 

 

i want that the sdk will handle the refresh token.

 

what happened if i use the token and then not using it for a while and then use it again, will it refresh automatically?

what is the best way to support this scenario ?

 

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Staff rankDropbox Staff

    If your app needs long-term access without repeated manual user interaction, the app should request offline access to get a refresh token. Refresh tokens don't expire by default (though they can be revoked on demand) so they can be stored and re-used multiple times over long periods of time without the user present.

     

    The .NET SDK will handle the refresh process for you automatically as long as you provide the necessary credentials (i.e., refresh token, etc.) as shown in the examples. You can find an example of getting and using a refresh token in the OauthBasic example (non-PKCE, meant for server-side apps) as well as in the OAuthPKCE example (PKCE, meant for client-side apps).

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,917 PostsLatest Activity: 11 days ago
334 Following

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!