Forum Discussion

klm1's avatar
klm1
Helpful | Level 6
4 years ago
Solved

Only save refresh token for SLT use from Dropbox .NET SDK?

The OauthPKCE .NET example, which creates an access token and a refresh token using PKCE, saves both tokens to settings. It looks like creating the DropboxClient,  the access token is not needed. Is it sufficient when using short-lived tokens with the .NET SDK to only save the refresh token?

  • Yes, that's correct. Technically the short-lived access token isn't needed there, since the SDK will automatically use the refresh token to get a new short-lived access token whenever needed.

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

    Yes, that's correct. Technically the short-lived access token isn't needed there, since the SDK will automatically use the refresh token to get a new short-lived access token whenever needed.

About Discuss Dropbox Developer & API

Node avatar for Discuss Dropbox Developer & API
Make connections with other developers804 PostsLatest Activity: 10 hours ago
217 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!