<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Resfresh Token using c# code for Oauth2.0 in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Resfresh-Token-using-c-code-for-Oauth2-0/m-p/632999#M29205</link>
    <description>&lt;P&gt;Hi &lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/422790"&gt;@Здравко&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for the quick response&lt;/P&gt;&lt;P&gt;Can you suggest how properly construct client object with refresh token ?&lt;/P&gt;&lt;P&gt;Currently I transfer only access token and it works&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ivan__0-1667223196156.png" style="width: 400px;"&gt;&lt;img src="https://www.dropboxforum.com/t5/image/serverpage/image-id/32676i3B1260667AD06BDE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ivan__0-1667223196156.png" alt="Ivan__0-1667223196156.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 31 Oct 2022 13:29:26 GMT</pubDate>
    <dc:creator>Ivan_</dc:creator>
    <dc:date>2022-10-31T13:29:26Z</dc:date>
    <item>
      <title>Resfresh Token using c# code for Oauth2.0</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Resfresh-Token-using-c-code-for-Oauth2-0/m-p/632976#M29203</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I need assisstance in Oauth2.0 usage.&lt;/P&gt;
&lt;P&gt;After I generated token I have following properties&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ivan__0-1667216257713.png" style="width: 400px;"&gt;&lt;img src="https://www.dropboxforum.com/t5/image/serverpage/image-id/32672iC8D8BF2F3F1C0FD1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ivan__0-1667216257713.png" alt="Ivan__0-1667216257713.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The moment that I do not understand is how to refresh token. Here I got ExpiredAt property that shows that this token will be expired.&lt;/P&gt;
&lt;P&gt;Assuming that it is already expired, how I must refresh it ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I checked provided samples of code&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ivan__1-1667219628928.png" style="width: 400px;"&gt;&lt;img src="https://www.dropboxforum.com/t5/image/serverpage/image-id/32673i1EB42B72D29AF297/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ivan__1-1667219628928.png" alt="Ivan__1-1667219628928.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Will be correct if I make such verification for expiration of token&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ivan__2-1667219802198.png" style="width: 400px;"&gt;&lt;img src="https://www.dropboxforum.com/t5/image/serverpage/image-id/32674iE6D911D091ADA980/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ivan__2-1667219802198.png" alt="Ivan__2-1667219802198.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;and if it expried I add this code ?&lt;/P&gt;
&lt;P&gt;var client = new DropboxClient(Settings.Default.AccessToken, Settings.Default.RefreshToken, ApiKey, ApiSecret, config);await client.RefreshAccessToken(newScopes);var clientNew = new DropboxClient(Settings.Default.AccessToken, Settings.Default.RefreshToken, ApiKey, ApiSecret, config);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Mon, 31 Oct 2022 13:06:19 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Resfresh-Token-using-c-code-for-Oauth2-0/m-p/632976#M29203</guid>
      <dc:creator>Ivan_</dc:creator>
      <dc:date>2022-10-31T13:06:19Z</dc:date>
    </item>
    <item>
      <title>Re: Resfresh Token using c# code for Oauth2.0</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Resfresh-Token-using-c-code-for-Oauth2-0/m-p/632994#M29204</link>
      <description>&lt;P&gt;Hi &lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1579295"&gt;@Ivan_&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;You don't have to perform any of the actions shown. Whenever such action has shown in some example, it's just to show how the refresh works (not that you have to use it)! Once you initialize/construct a client object using the credentials provided, the object itself will take care to refresh whenever needed. &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@41457EF40051AFF130FDBFE21B496926/emoticons/1f609.png" alt=":winking_face:" title=":winking_face:" /&gt; You don't need to do anything explicitly by yourself (other than just properly construct client object, together with the refresh token, and use it).&lt;/P&gt;&lt;P&gt;Hope this clarifies matter.&lt;/P&gt;</description>
      <pubDate>Mon, 31 Oct 2022 13:22:38 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Resfresh-Token-using-c-code-for-Oauth2-0/m-p/632994#M29204</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2022-10-31T13:22:38Z</dc:date>
    </item>
    <item>
      <title>Re: Resfresh Token using c# code for Oauth2.0</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Resfresh-Token-using-c-code-for-Oauth2-0/m-p/632999#M29205</link>
      <description>&lt;P&gt;Hi &lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/422790"&gt;@Здравко&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for the quick response&lt;/P&gt;&lt;P&gt;Can you suggest how properly construct client object with refresh token ?&lt;/P&gt;&lt;P&gt;Currently I transfer only access token and it works&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ivan__0-1667223196156.png" style="width: 400px;"&gt;&lt;img src="https://www.dropboxforum.com/t5/image/serverpage/image-id/32676i3B1260667AD06BDE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ivan__0-1667223196156.png" alt="Ivan__0-1667223196156.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 31 Oct 2022 13:29:26 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Resfresh-Token-using-c-code-for-Oauth2-0/m-p/632999#M29205</guid>
      <dc:creator>Ivan_</dc:creator>
      <dc:date>2022-10-31T13:29:26Z</dc:date>
    </item>
    <item>
      <title>Re: Resfresh Token using c# code for Oauth2.0</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Resfresh-Token-using-c-code-for-Oauth2-0/m-p/633004#M29206</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1579295"&gt;@Ivan_&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;Currently I transfer only access token and it works&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ivan__0-1667223196156.png" style="width: 400px;"&gt;&lt;img src="https://www.dropboxforum.com/t5/image/serverpage/image-id/32676i3B1260667AD06BDE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ivan__0-1667223196156.png" alt="Ivan__0-1667223196156.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@1E3726C826CB263EDE97D58832C6DA92/emoticons/1f913.png" alt=":nerd_face:" title=":nerd_face:" /&gt; Really?! If it works, what actually you are asking for?! 🧐&lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@D88F213CAFB196B6AB70612B08AD9D31/emoticons/1f601.png" alt=":beaming_face_with_smiling_eyes:" title=":beaming_face_with_smiling_eyes:" /&gt;&lt;/P&gt;&lt;P&gt;You cannot expect when object is initialized with just access token it be able refresh somehow. 🤷 How such thing can happen? Impossible of course - the refresh token is required, at least! Even more, once refresh token is provided, the access token and expiration date become optional. Take a look &lt;A href="https://github.com/dropbox/dropbox-sdk-dotnet/blob/master/dropbox-sdk-dotnet/Examples/OAuthPKCE/Program.cs#L83" target="_blank" rel="noopener"&gt;here&lt;/A&gt; for instance.&amp;nbsp;&lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@41457EF40051AFF130FDBFE21B496926/emoticons/1f609.png" alt=":winking_face:" title=":winking_face:" /&gt; Depending on how exactly you have performed authentication flow (PKCE or not), you may need to add the application secret too.&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
      <pubDate>Mon, 31 Oct 2022 13:47:24 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Resfresh-Token-using-c-code-for-Oauth2-0/m-p/633004#M29206</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2022-10-31T13:47:24Z</dc:date>
    </item>
    <item>
      <title>Re: Resfresh Token using c# code for Oauth2.0</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Resfresh-Token-using-c-code-for-Oauth2-0/m-p/633011#M29207</link>
      <description>&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;So, basically I need to this, am I right ?&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;var&lt;/SPAN&gt; &lt;SPAN class=""&gt;config&lt;/SPAN&gt; &lt;SPAN class=""&gt;=&lt;/SPAN&gt; &lt;SPAN class=""&gt;new&lt;/SPAN&gt; &lt;SPAN class=""&gt;DropboxClientConfig&lt;/SPAN&gt;(&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;"&lt;/SPAN&gt;SimplePKCEOAuthApp&lt;SPAN class=""&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;) { &lt;SPAN class=""&gt;HttpClient&lt;/SPAN&gt; &lt;SPAN class=""&gt;=&lt;/SPAN&gt; &lt;SPAN class=""&gt;httpClient&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;};&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;var&lt;/SPAN&gt; &lt;SPAN class=""&gt;client&lt;/SPAN&gt; &lt;SPAN class=""&gt;=&lt;/SPAN&gt; &lt;SPAN class=""&gt;new&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;DropboxClient&lt;/SPAN&gt;&lt;/SPAN&gt;(&lt;SPAN class=""&gt;Settings&lt;/SPAN&gt;.&lt;SPAN class=""&gt;Default&lt;/SPAN&gt;.&lt;SPAN class=""&gt;RefreshToken&lt;/SPAN&gt;, &lt;SPAN class=""&gt;ApiKey&lt;/SPAN&gt;, &lt;SPAN class=""&gt;config&lt;/SPAN&gt;);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have performed authentication flow&amp;nbsp; without PKCE.&lt;/P&gt;&lt;P&gt;I need to clarify 2 moments :&lt;/P&gt;&lt;P&gt;1) What is that parameter for config object : "&lt;SPAN class=""&gt;SimplePKCEOAuthApp&lt;/SPAN&gt;"?&lt;/P&gt;&lt;P&gt;Is that application console name ?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ivan__1-1667225048444.png" style="width: 400px;"&gt;&lt;img src="https://www.dropboxforum.com/t5/image/serverpage/image-id/32678iF027293032C2830A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ivan__1-1667225048444.png" alt="Ivan__1-1667225048444.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2)Is it enough to transfer only refresh token ? It looks strange, because we do not use access token with such approach&lt;/P&gt;&lt;P&gt;That is the way how I get access token&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ivan__0-1667224945405.png" style="width: 400px;"&gt;&lt;img src="https://www.dropboxforum.com/t5/image/serverpage/image-id/32677i9D102A66F7CA8994/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ivan__0-1667224945405.png" alt="Ivan__0-1667224945405.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;It is same way how I described it in that topic &lt;A href="https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-programmatically-get-the-Authorization-code-without/td-p/626621" target="_blank" rel="noopener"&gt;https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-programmatically-get-the-Authorization-code-without/td-p/626621&lt;/A&gt; with which you helped me&lt;/P&gt;</description>
      <pubDate>Mon, 31 Oct 2022 14:01:53 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Resfresh-Token-using-c-code-for-Oauth2-0/m-p/633011#M29207</guid>
      <dc:creator>Ivan_</dc:creator>
      <dc:date>2022-10-31T14:01:53Z</dc:date>
    </item>
    <item>
      <title>Re: Resfresh Token using c# code for Oauth2.0</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Resfresh-Token-using-c-code-for-Oauth2-0/m-p/633020#M29208</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1579295"&gt;@Ivan_&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;var&lt;/SPAN&gt; &lt;SPAN class=""&gt;client&lt;/SPAN&gt; &lt;SPAN class=""&gt;=&lt;/SPAN&gt; &lt;SPAN class=""&gt;new&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;DropboxClient&lt;/SPAN&gt;&lt;/SPAN&gt;(&lt;SPAN class=""&gt;Settings&lt;/SPAN&gt;.&lt;SPAN class=""&gt;Default&lt;/SPAN&gt;.&lt;SPAN class=""&gt;RefreshToken&lt;/SPAN&gt;, &lt;SPAN class=""&gt;ApiKey&lt;/SPAN&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;&lt;U&gt;, &lt;/U&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;SPAN class=""&gt;config&lt;/SPAN&gt;);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have performed authentication flow&amp;nbsp; &lt;U&gt;&lt;STRONG&gt;without PKCE&lt;/STRONG&gt;&lt;/U&gt;.&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Nope, skipping application secret is only possible while PKCE is in use.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1579295"&gt;@Ivan_&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;1) What is that parameter for config object : "&lt;SPAN class=""&gt;SimplePKCEOAuthApp&lt;/SPAN&gt;"?&lt;/P&gt;&lt;P&gt;Is that application console name ?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ivan__1-1667225048444.png" style="width: 400px;"&gt;&lt;img src="https://www.dropboxforum.com/t5/image/serverpage/image-id/32678iF027293032C2830A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ivan__1-1667225048444.png" alt="Ivan__1-1667225048444.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;No, it's just a free name (even non mandatory - i.e. you can skip it) describing somehow your application. You can put there "ARTY1", for instance, it normally match the application name. Follow this rule.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1579295"&gt;@Ivan_&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;2)Is it enough to transfer only refresh token ? It looks strange, because we do not use access token with such approach&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;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) Access token is enough by self&amp;nbsp; to authenticate regular API call (or equivalent using any SDK), refrsh token on other side needs additional confirmations (least application' key, but in your case application' secret too) to be validated the usage.&lt;/P&gt;</description>
      <pubDate>Mon, 31 Oct 2022 14:22:12 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Resfresh-Token-using-c-code-for-Oauth2-0/m-p/633020#M29208</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2022-10-31T14:22:12Z</dc:date>
    </item>
    <item>
      <title>Re: Resfresh Token using c# code for Oauth2.0</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Resfresh-Token-using-c-code-for-Oauth2-0/m-p/633030#M29209</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/422790"&gt;@Здравко&lt;/a&gt;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)"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;currently I successfully get token and the code.&lt;/P&gt;&lt;P&gt;Now I need to clarify this moment about refreshing the token. As you told in first reply, DropBox does everything&amp;nbsp; without me. So, for uploading files, how I need to constrct the client object in authentication flow&amp;nbsp; &lt;U&gt;&lt;STRONG&gt;without PKCE ?&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 31 Oct 2022 14:37:48 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Resfresh-Token-using-c-code-for-Oauth2-0/m-p/633030#M29209</guid>
      <dc:creator>Ivan_</dc:creator>
      <dc:date>2022-10-31T14:37:48Z</dc:date>
    </item>
    <item>
      <title>Re: Resfresh Token using c# code for Oauth2.0</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Resfresh-Token-using-c-code-for-Oauth2-0/m-p/633033#M29210</link>
      <description>&lt;P&gt;Hmm... &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@9AD39CA637682E9616FBE31CDAF1B6C4/emoticons/1f914.png" alt=":thinking_face:" title=":thinking_face:" /&gt; I don't know what more to say.&lt;/P&gt;&lt;P&gt;Ok, let's take a look how the things happen on lower (API) level, when you need to do everything yourself. Take a look on &lt;A href="https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Issue-in-generating-access-token/m-p/592921/highlight/true#M27586" target="_blank" rel="noopener"&gt;this thread&lt;/A&gt;. Yes, the client object can do everything mentioned there for you, but it needs the same info (the one you would need)! What info is needed for performing refresh, as described in referred thread? &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@FBF7D2AB59A0D6E861EBF6A36F93B7E2/emoticons/1f642.png" alt=":slightly_smiling_face:" title=":slightly_smiling_face:" /&gt; Take a look back in your code and keep in mind that the same algorithm is 'embedded' there.&lt;/P&gt;&lt;P&gt;Hope this sheds some light.&lt;/P&gt;</description>
      <pubDate>Mon, 31 Oct 2022 14:51:01 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Resfresh-Token-using-c-code-for-Oauth2-0/m-p/633033#M29210</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2022-10-31T14:51:01Z</dc:date>
    </item>
    <item>
      <title>Re: Resfresh Token using c# code for Oauth2.0</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Resfresh-Token-using-c-code-for-Oauth2-0/m-p/633043#M29213</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1579295"&gt;@Ivan_&lt;/a&gt; Здравко 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., &lt;A href="https://github.com/dropbox/dropbox-sdk-dotnet/blob/master/dropbox-sdk-dotnet/Examples/OauthBasic/Program.cs#L87" target="_blank"&gt;here in this example for the non-PKCE scenario&lt;/A&gt;. You don't actually need to call RefreshAccessToken yourself.&lt;/P&gt;</description>
      <pubDate>Mon, 31 Oct 2022 15:50:30 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Resfresh-Token-using-c-code-for-Oauth2-0/m-p/633043#M29213</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2022-10-31T15:50:30Z</dc:date>
    </item>
  </channel>
</rss>

