<?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: Refresh token, where I can find an implementation example or tutorial? in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Refresh-token-where-I-can-find-an-implementation-example-or/m-p/508563#M25104</link>
    <description>&lt;P&gt;I have made the described changes to the DBRoulette example app. And it doesn't automatically handle the refresh token. Perhaps I am doing something wrong. But once the short lived token has expired it gives a 401 with an expired_access_token error.&lt;/P&gt;&lt;P&gt;Perhaps you could update the example.&lt;/P&gt;</description>
    <pubDate>Mon, 29 Mar 2021 07:17:05 GMT</pubDate>
    <dc:creator>eweb</dc:creator>
    <dc:date>2021-03-29T07:17:05Z</dc:date>
    <item>
      <title>Refresh token, where I can find an implementation example or tutorial?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Refresh-token-where-I-can-find-an-implementation-example-or/m-p/475748#M24125</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I need to update my app to support new OAuth code flow with PKCE/scopes and new short-lived tokens. For&amp;nbsp;code flow with PKCE and scopes I see there is the new method "DBClientsManager.authorizeFromControllerV2:...". But, where I can find a tutorial or an example about using and refreshing short-lived tokens? I don't know which method to call, when call it and how to manage the response.&lt;/P&gt;
&lt;P&gt;I have read:&lt;/P&gt;
&lt;P&gt;-&amp;nbsp;&lt;A href="https://dropbox.tech/developers/now-available--scoped-apps-and-enhanced-permissions" target="_blank" rel="noopener"&gt;https://dropbox.tech/developers/now-available--scoped-apps-and-enhanced-permissions&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;-&amp;nbsp;&lt;A href="https://dropbox.tech/developers/migrating-app-permissions-and-access-tokens#implement-refresh-tokens" target="_blank" rel="noopener"&gt;https://dropbox.tech/developers/migrating-app-permissions-and-access-tokens#implement-refresh-tokens&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;- example app DBRoulette&lt;/P&gt;
&lt;P&gt;- this forum&lt;/P&gt;
&lt;P&gt;but I found nothing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please help, thank you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Dec 2020 17:38:00 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Refresh-token-where-I-can-find-an-implementation-example-or/m-p/475748#M24125</guid>
      <dc:creator>Samnis</dc:creator>
      <dc:date>2020-12-03T17:38:00Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh token, where I can find an implementation example or tutorial?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Refresh-token-where-I-can-find-an-implementation-example-or/m-p/475750#M24126</link>
      <description>&lt;P&gt;Sorry,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I missed some info: I am using the official Objective-C SDK from Dropbox available here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/dropbox/dropbox-sdk-obj-c" target="_blank"&gt;https://github.com/dropbox/dropbox-sdk-obj-c&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Dec 2020 17:35:49 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Refresh-token-where-I-can-find-an-implementation-example-or/m-p/475750#M24126</guid>
      <dc:creator>Samnis</dc:creator>
      <dc:date>2020-12-03T17:35:49Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh token, where I can find an implementation example or tutorial?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Refresh-token-where-I-can-find-an-implementation-example-or/m-p/475764#M24127</link>
      <description>&lt;P&gt;If you use the SDK and &lt;A href="https://github.com/dropbox/dropbox-sdk-obj-c#begin-the-authorization-flow" target="_self"&gt;implement the authorization flow as documented&lt;/A&gt;, i.e., using&amp;nbsp;authorizeFromControllerV2, the SDK will actually automatically handle the short-lived access token and refresh token logic for you.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Dec 2020 18:06:47 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Refresh-token-where-I-can-find-an-implementation-example-or/m-p/475764#M24127</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2020-12-03T18:06:47Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh token, where I can find an implementation example or tutorial?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Refresh-token-where-I-can-find-an-implementation-example-or/m-p/475809#M24128</link>
      <description>&lt;P&gt;Wow, good news &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;&amp;nbsp;I'll try it as soon as possible.&lt;/P&gt;&lt;P&gt;Greg, thank you very much for your prompt answer.&lt;/P&gt;&lt;P&gt;PS: maybe you should add a clarification to the documentation &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;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Dec 2020 19:17:23 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Refresh-token-where-I-can-find-an-implementation-example-or/m-p/475809#M24128</guid>
      <dc:creator>Samnis</dc:creator>
      <dc:date>2020-12-03T19:17:23Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh token, where I can find an implementation example or tutorial?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Refresh-token-where-I-can-find-an-implementation-example-or/m-p/508563#M25104</link>
      <description>&lt;P&gt;I have made the described changes to the DBRoulette example app. And it doesn't automatically handle the refresh token. Perhaps I am doing something wrong. But once the short lived token has expired it gives a 401 with an expired_access_token error.&lt;/P&gt;&lt;P&gt;Perhaps you could update the example.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Mar 2021 07:17:05 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Refresh-token-where-I-can-find-an-implementation-example-or/m-p/508563#M25104</guid>
      <dc:creator>eweb</dc:creator>
      <dc:date>2021-03-29T07:17:05Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh token, where I can find an implementation example or tutorial?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Refresh-token-where-I-can-find-an-implementation-example-or/m-p/508709#M25113</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/375716"&gt;@eweb&lt;/a&gt;&amp;nbsp;I'll ask the team to update the DBRoulette example. I can't promise exactly when that would be done though, so in the meantime perhaps you can share what you have so far and I can take a look at see what the issue might be.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Mar 2021 15:43:24 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Refresh-token-where-I-can-find-an-implementation-example-or/m-p/508709#M25113</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2021-03-29T15:43:24Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh token, where I can find an implementation example or tutorial?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Refresh-token-where-I-can-find-an-implementation-example-or/m-p/508716#M25114</link>
      <description>&lt;P&gt;Possibly the simplest way to do that would be to fork the repo and push up my changes. Is that gonna help you.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Mar 2021 16:23:12 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Refresh-token-where-I-can-find-an-implementation-example-or/m-p/508716#M25114</guid>
      <dc:creator>eweb</dc:creator>
      <dc:date>2021-03-29T16:23:12Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh token, where I can find an implementation example or tutorial?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Refresh-token-where-I-can-find-an-implementation-example-or/m-p/508721#M25116</link>
      <description>&lt;P&gt;My fork is&amp;nbsp;&lt;A href="https://github.com/eamonn-webster/dropbox-sdk-obj-c" target="_blank"&gt;https://github.com/eamonn-webster/dropbox-sdk-obj-c&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Mar 2021 16:38:13 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Refresh-token-where-I-can-find-an-implementation-example-or/m-p/508721#M25116</guid>
      <dc:creator>eweb</dc:creator>
      <dc:date>2021-03-29T16:38:13Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh token, where I can find an implementation example or tutorial?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Refresh-token-where-I-can-find-an-implementation-example-or/m-p/508810#M25120</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/375716"&gt;@eweb&lt;/a&gt;&amp;nbsp;Thanks! Looking at &lt;A href="https://github.com/dropbox/dropbox-sdk-obj-c/compare/master...eamonn-webster:master#diff-39d666083321760b93f18c1b1d5b5599198fae1e383691f28421c0a2ec8c5fd7" target="_self"&gt;the comparison&lt;/A&gt;, I see the relevant difference is the replacement of&amp;nbsp;authorizeFromController with authorizeFromControllerV2 in&amp;nbsp;linkDropboxButtonPressed. That looks correct, and I don't believe you're missing anything. I'll give that a try myself and look into it.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Mar 2021 20:23:39 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Refresh-token-where-I-can-find-an-implementation-example-or/m-p/508810#M25120</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2021-03-29T20:23:39Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh token, where I can find an implementation example or tutorial?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Refresh-token-where-I-can-find-an-implementation-example-or/m-p/509080#M25124</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/375716"&gt;@eweb&lt;/a&gt;&amp;nbsp;I tried this out, and it's working successfully for me. Even after the initial short-lived access token expires, the SDK automatically uses the stored refresh token to get a new short-lived access token and then uses that to successfully make further API calls, without having to report 'expired_access_token' back to the app's code.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Did you perhaps process the app authorization flow before switching from authorizeFromController to authorizeFromControllerV2 and so only had a short-lived access token stored, but not a refresh token? You can unlink the client and then re-authorize with&amp;nbsp;authorizeFromControllerV2 in that case.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Mar 2021 17:00:06 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Refresh-token-where-I-can-find-an-implementation-example-or/m-p/509080#M25124</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2021-03-30T17:00:06Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh token, where I can find an implementation example or tutorial?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Refresh-token-where-I-can-find-an-implementation-example-or/m-p/509084#M25126</link>
      <description>&lt;P&gt;That is possible, I'll try it again.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Mar 2021 17:15:26 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Refresh-token-where-I-can-find-an-implementation-example-or/m-p/509084#M25126</guid>
      <dc:creator>eweb</dc:creator>
      <dc:date>2021-03-30T17:15:26Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh token, where I can find an implementation example or tutorial?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Refresh-token-where-I-can-find-an-implementation-example-or/m-p/510411#M25159</link>
      <description>&lt;P&gt;I unlinked and relinked and it all worked. So I guess we can put that one down to user error. Thanks for your help.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Apr 2021 16:00:02 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Refresh-token-where-I-can-find-an-implementation-example-or/m-p/510411#M25159</guid>
      <dc:creator>eweb</dc:creator>
      <dc:date>2021-04-05T16:00:02Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh token, where I can find an implementation example or tutorial?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Refresh-token-where-I-can-find-an-implementation-example-or/m-p/572617#M26729</link>
      <description>Refresh token of my new vivo device name y51s v2ò31 iD y3a2743986004 please</description>
      <pubDate>Sun, 23 Jan 2022 14:57:41 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Refresh-token-where-I-can-find-an-implementation-example-or/m-p/572617#M26729</guid>
      <dc:creator>M Anwar Bajwa</dc:creator>
      <dc:date>2022-01-23T14:57:41Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh token, where I can find an implementation example or tutorial?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Refresh-token-where-I-can-find-an-implementation-example-or/m-p/572973#M26738</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1512097"&gt;@M Anwar Bajwa&lt;/a&gt; A refresh token is not something Dropbox support staff can provide for you. This process is supposed to be built in to the third party app itself. You should reach out to the developer of the third party app you're using for any help with that app.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jan 2022 18:41:55 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Refresh-token-where-I-can-find-an-implementation-example-or/m-p/572973#M26738</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2022-01-24T18:41:55Z</dc:date>
    </item>
  </channel>
</rss>

