<?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: Getting refreshed access token from Generated access tokem in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Getting-refreshed-access-token-from-Generated-access-tokem/m-p/638197#M29400</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1578395"&gt;@SneYellow46&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;Note that we need to use the generated access token approach other than oAuth flow.&amp;nbsp;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Hi &lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1578395"&gt;@SneYellow46&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;You can't use generated access token for long term access. All access tokens are short lived (including generated). You may retrieve refresh token in separate application (so one OAuth flow has to be performed once, at least) and after that embed this token and reuse it. Such an approach is suitable for server side use only! Be careful. Usage of any long term embedded token is NOT good idea for client side application.&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
    <pubDate>Mon, 21 Nov 2022 16:38:39 GMT</pubDate>
    <dc:creator>Здравко</dc:creator>
    <dc:date>2022-11-21T16:38:39Z</dc:date>
    <item>
      <title>Getting refreshed access token from Generated access tokem</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Getting-refreshed-access-token-from-Generated-access-tokem/m-p/638191#M29399</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I have an iOS objective c application connected with dropbox SDK.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We are using generated access token to access apps folder from my BD account.&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;
&lt;LI-CODE lang="markup"&gt;client = [[DBUserClient alloc] initWithAccessToken:@"sl.BThRWss....."];&lt;/LI-CODE&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;
&lt;P&gt;But this Generated access token expires after sometime. What is the possible solution so that it doesnt expire or get a refreshed access token.&lt;/P&gt;
&lt;P&gt;Note that we need to use the generated access token approach other than oAuth flow.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you provide any code sample in Objective c to get this refreshed token or how we can achieve this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Mon, 21 Nov 2022 19:34:08 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Getting-refreshed-access-token-from-Generated-access-tokem/m-p/638191#M29399</guid>
      <dc:creator>SneYellow46</dc:creator>
      <dc:date>2022-11-21T19:34:08Z</dc:date>
    </item>
    <item>
      <title>Re: Getting refreshed access token from Generated access tokem</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Getting-refreshed-access-token-from-Generated-access-tokem/m-p/638197#M29400</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1578395"&gt;@SneYellow46&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;Note that we need to use the generated access token approach other than oAuth flow.&amp;nbsp;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Hi &lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1578395"&gt;@SneYellow46&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;You can't use generated access token for long term access. All access tokens are short lived (including generated). You may retrieve refresh token in separate application (so one OAuth flow has to be performed once, at least) and after that embed this token and reuse it. Such an approach is suitable for server side use only! Be careful. Usage of any long term embedded token is NOT good idea for client side application.&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Nov 2022 16:38:39 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Getting-refreshed-access-token-from-Generated-access-tokem/m-p/638197#M29400</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2022-11-21T16:38:39Z</dc:date>
    </item>
    <item>
      <title>Re: Getting refreshed access token from Generated access tokem</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Getting-refreshed-access-token-from-Generated-access-tokem/m-p/638214#M29401</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thanks for the reply&amp;nbsp;&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;Do you mean we have to make oAuth flow from my application once and get access token and use it later do distribute to other users to grant access?&lt;/P&gt;&lt;P&gt;Or how could this work in my mobile application?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Nov 2022 17:25:09 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Getting-refreshed-access-token-from-Generated-access-tokem/m-p/638214#M29401</guid>
      <dc:creator>SneYellow46</dc:creator>
      <dc:date>2022-11-21T17:25:09Z</dc:date>
    </item>
    <item>
      <title>Re: Getting refreshed access token from Generated access tokem</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Getting-refreshed-access-token-from-Generated-access-tokem/m-p/638216#M29402</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1578395"&gt;@SneYellow46&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;Do you mean we have to make oAuth flow from my application once and get access token and use it later do distribute to other users to grant access?&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;No, no, no... You said that you need generated access token. That was related to this - nothing more!!! I said, such a solution is suitable for server side application only (in the same context).&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/1578395"&gt;@SneYellow46&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;Or how could this work in my mobile application?&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;On mobile application on every install you should perform OAuth flow and keep the refresh token (at least). Once authentication info is available you can just create a client object and use it... That's it.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Nov 2022 17:25:40 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Getting-refreshed-access-token-from-Generated-access-tokem/m-p/638216#M29402</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2022-11-21T17:25:40Z</dc:date>
    </item>
    <item>
      <title>Re: Getting refreshed access token from Generated access tokem</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Getting-refreshed-access-token-from-Generated-access-tokem/m-p/638217#M29403</link>
      <description>&lt;P&gt;Oh okay &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;Yes that is the issue, the data resides on our dropbox and we dont want to give users access to our dropbox credentials that is why don't want to use oAuth flow.&lt;/P&gt;&lt;P&gt;We had done this few years back, that time DB project had option to make Generated access token Long-lived/No Expiration time. That options isn't available anymore.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Nov 2022 17:31:17 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Getting-refreshed-access-token-from-Generated-access-tokem/m-p/638217#M29403</guid>
      <dc:creator>SneYellow46</dc:creator>
      <dc:date>2022-11-21T17:31:17Z</dc:date>
    </item>
    <item>
      <title>Re: Getting refreshed access token from Generated access tokem</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Getting-refreshed-access-token-from-Generated-access-tokem/m-p/638219#M29404</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1578395"&gt;@SneYellow46&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;Yes that is the issue, the data resides on our dropbox and we dont want to give users access to our dropbox credentials that is why don't want to use oAuth flow.&lt;/P&gt;&lt;P&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/@9AD39CA637682E9616FBE31CDAF1B6C4/emoticons/1f914.png" alt=":thinking_face:" title=":thinking_face:" /&gt;🤨🤷 Just opposite!!!&lt;/P&gt;&lt;P&gt;That's why I told you that embedding any long lived token is not good idea for something different than server side application. &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; Only on server only you will have access there. On client side everybody has access. Exactly that's why OAuth is used! In such a way you don't have to pass any tokens. They will be generated on the user installing you application side (your application gonna generated them there actually). &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; Seems you are falling in some confusion.&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Nov 2022 17:40:26 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Getting-refreshed-access-token-from-Generated-access-tokem/m-p/638219#M29404</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2022-11-21T17:40:26Z</dc:date>
    </item>
    <item>
      <title>Re: Getting refreshed access token from Generated access tokem</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Getting-refreshed-access-token-from-Generated-access-tokem/m-p/638222#M29405</link>
      <description>&lt;P&gt;No I understand the flow of the DB SDK or any Auth provider in that case.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But yeah, we wanted our application to be distributed to few users directly with embedded access token so that that they just install the app and start accessing data/files from our DB account within the application.&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;&lt;P&gt;Thanks for the information.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Nov 2022 17:51:06 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Getting-refreshed-access-token-from-Generated-access-tokem/m-p/638222#M29405</guid>
      <dc:creator>SneYellow46</dc:creator>
      <dc:date>2022-11-21T17:51:06Z</dc:date>
    </item>
    <item>
      <title>Re: Getting refreshed access token from Generated access tokem</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Getting-refreshed-access-token-from-Generated-access-tokem/m-p/638225#M29406</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1578395"&gt;@SneYellow46&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;..., we wanted our application to be distributed to few users directly with embedded access token so that that they just install the app and start accessing data/files from our DB account within the application.&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;In such a case you can count it as something like server side application (server side application - not literal - on phone). It's your responsibility to restrict the access to your account! Take in mind that, in such case, everybody accessing/installing your application will have access to your account. Is it acceptable? &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;...&lt;/P&gt;&lt;P&gt;Good luck.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Nov 2022 18:01:14 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Getting-refreshed-access-token-from-Generated-access-tokem/m-p/638225#M29406</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2022-11-21T18:01:14Z</dc:date>
    </item>
    <item>
      <title>Re: Getting refreshed access token from Generated access tokem</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Getting-refreshed-access-token-from-Generated-access-tokem/m-p/638227#M29407</link>
      <description>&lt;P&gt;Yes this is for few of our client. We will provide them tokens manually and they have to enter it to get access. So in such case is it possible to refresh the token from the mobile side without oAuth flow?.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Nov 2022 18:12:58 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Getting-refreshed-access-token-from-Generated-access-tokem/m-p/638227#M29407</guid>
      <dc:creator>SneYellow46</dc:creator>
      <dc:date>2022-11-21T18:12:58Z</dc:date>
    </item>
    <item>
      <title>Re: Getting refreshed access token from Generated access tokem</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Getting-refreshed-access-token-from-Generated-access-tokem/m-p/638230#M29408</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1578395"&gt;@SneYellow46&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;... So in such case is it possible to refresh the token from the mobile side without oAuth flow?.&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Yes, it is. Once refresh token is available the refresh can be done on any platform; not only on mobile (as a process it's the same; just a call to Dropbox server whenever needed without any user interaction). &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;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Nov 2022 18:21:25 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Getting-refreshed-access-token-from-Generated-access-tokem/m-p/638230#M29408</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2022-11-21T18:21:25Z</dc:date>
    </item>
    <item>
      <title>Re: Getting refreshed access token from Generated access tokem</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Getting-refreshed-access-token-from-Generated-access-tokem/m-p/638232#M29409</link>
      <description>&lt;P&gt;How I will get the refresh token from generated token? Or you are suggesting some other approach?&lt;/P&gt;&lt;P&gt;is there any sample available for objective-c dropbox SDK?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know that using oAuth flow tokens are refreshed automatically by DB SDK. But in my case what is the solution?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Mon, 21 Nov 2022 18:27:30 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Getting-refreshed-access-token-from-Generated-access-tokem/m-p/638232#M29409</guid>
      <dc:creator>SneYellow46</dc:creator>
      <dc:date>2022-11-21T18:27:30Z</dc:date>
    </item>
    <item>
      <title>Re: Getting refreshed access token from Generated access tokem</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Getting-refreshed-access-token-from-Generated-access-tokem/m-p/638245#M29410</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1578395"&gt;@SneYellow46&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;I know that using oAuth flow tokens are refreshed automatically by DB SDK. But in my case what is the solution?&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;The same. &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; Once you get to the authentication info just save it and embedding. That's it. Take a look on &lt;A href="https://github.com/dropbox/dropbox-sdk-obj-c/" target="_blank" rel="noopener"&gt;the description&lt;/A&gt; if you have something forgotten.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Nov 2022 18:42:48 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Getting-refreshed-access-token-from-Generated-access-tokem/m-p/638245#M29410</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2022-11-21T18:42:48Z</dc:date>
    </item>
    <item>
      <title>Re: Getting refreshed access token from Generated access tokem</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Getting-refreshed-access-token-from-Generated-access-tokem/m-p/638548#M29416</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way I can make Generated token with "No expiration"?&lt;/P&gt;&lt;P&gt;Like how it was earlier.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ViewAccessToken.png" style="width: 800px;"&gt;&lt;img src="https://www.dropboxforum.com/t5/image/serverpage/image-id/33182i30F8EBADBCD907B6/image-size/large?v=v2&amp;amp;px=999" role="button" title="ViewAccessToken.png" alt="ViewAccessToken.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Nov 2022 17:31:12 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Getting-refreshed-access-token-from-Generated-access-tokem/m-p/638548#M29416</guid>
      <dc:creator>SneYellow46</dc:creator>
      <dc:date>2022-11-22T17:31:12Z</dc:date>
    </item>
    <item>
      <title>Re: Getting refreshed access token from Generated access tokem</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Getting-refreshed-access-token-from-Generated-access-tokem/m-p/638559#M29417</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&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;i get refreshed token using&amp;nbsp;&lt;A href="https://stackoverflow.com/questions/70641660/how-do-you-get-and-use-a-refresh-token-for-the-dropbox-api-python-3-x/71794390#71794390" target="_self"&gt;this&lt;/A&gt;&amp;nbsp;, and i believe refresh tokens doest expire.&lt;/P&gt;&lt;P&gt;How I can make the DBUserClient, initWithAccessToken call with this refresh token to get access to my dropbox.&lt;/P&gt;&lt;P&gt;similar to ,&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt; client = [[DBUserClient alloc] initWithAccessToken:@"I5wqb1d...."];&lt;/LI-CODE&gt;&lt;P&gt;Can you provide any code sample in objective c to do this? I found with methods with initWithAccessToken which takes in refresh token param but didn't understand much of it.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Nov 2022 18:45:45 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Getting-refreshed-access-token-from-Generated-access-tokem/m-p/638559#M29417</guid>
      <dc:creator>SneYellow46</dc:creator>
      <dc:date>2022-11-22T18:45:45Z</dc:date>
    </item>
    <item>
      <title>Re: Getting refreshed access token from Generated access tokem</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Getting-refreshed-access-token-from-Generated-access-tokem/m-p/638631#M29419</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1578395"&gt;@SneYellow46&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;How I can make the DBUserClient, initWithAccessToken call with this refresh token to get access to my dropbox.&lt;/P&gt;&lt;P&gt;similar to ,&lt;/P&gt;&lt;PRE&gt; client = [[DBUserClient alloc] initWithAccessToken:@"I5wqb1d...."];&lt;/PRE&gt;&lt;P&gt;... I found with methods with initWithAccessToken which takes in refresh token ...&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;No unfortunately, the method 'initWithAccessToken' (any of them) doesn't provide so simple way (don't ask me why; if I have to bet, it's cause Obj-C supposes to be used for client side apps - i.e. with OAuth flow). The method mentioned doesn't receive refresh token directly as a string, but does accept token provider object which on its own can be initialized with 'DBAccessToken' object (don't ask me why this class names so). The last object can represent variety authentication info (non restricted to simple access token).&lt;/P&gt;&lt;P&gt;So first you can create 'DBAccessToken' object using &lt;A title="Creates a `DBAccessToken` object for a short-lived access token" href="https://github.com/dropbox/dropbox-sdk-obj-c/blob/master/Source/ObjectiveDropboxOfficial/Shared/Handwritten/OAuth/DBOAuthManager.h#L46" target="_blank" rel="noopener"&gt;appropriate constructor&lt;/A&gt;. Next a client object initialization can be done as performed &lt;A href="https://github.com/dropbox/dropbox-sdk-obj-c/blob/master/Source/ObjectiveDropboxOfficial/Shared/Handwritten/DBClientsManager.m#L152" target="_blank" rel="noopener"&gt;here&lt;/A&gt;. Warning: Select proper transport config, matching to the way that you have used for the refresh token (it's good idea to get a refresh token using PKCE instead)! Mistake for the methods in use will make refresh fails.&lt;/P&gt;&lt;P&gt;Good luck.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Nov 2022 00:05:31 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Getting-refreshed-access-token-from-Generated-access-tokem/m-p/638631#M29419</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2022-11-23T00:05:31Z</dc:date>
    </item>
  </channel>
</rss>

