Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
Ivan_
4 years agoHelpful | Level 6
Resfresh Token using c# code for Oauth2.0
Hi,
I need assisstance in Oauth2.0 usage.
After I generated token I have following properties
The moment that I do not understand is how to refresh token. Here I got ExpiredAt property t...
Ivan_
4 years agoHelpful | Level 6
ЗдравкоI am sorry for being not clear in my questions as you said the following : "You are mixing different things! In previous discussion the topic was the code, not the token! (take care, in your code you are still mixing the names - might be that's why you got in confusion)"
currently I successfully get token and the code.
Now I need to clarify this moment about refreshing the token. As you told in first reply, DropBox does everything without me. So, for uploading files, how I need to constrct the client object in authentication flow without PKCE ?
Greg-DB
Dropbox Community Moderator
4 years agoIvan_ Здравко is correct; as long as you provide the necessary credentials (refresh token, app key, and app secret if you didn't use PKCE, or just refresh token and app key if you did use PKCE), then the Dropbox .NET SDK client will handle the refresh process for you automatically (that is, it will automatically retrieve and use a new short-lived access token whenever needed). You should store and re-use the refresh token (it doesn't expire automatically), and construct the client as shown in the examples, e.g., here in this example for the non-PKCE scenario. You don't actually need to call RefreshAccessToken yourself.
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!