<?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: How to clearStoredAccessToken for tokens that fail migration? in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-clearStoredAccessToken-for-tokens-that-fail-migration/m-p/225609#M12255</link>
    <description>You don't need to clear old tokens that failed to migrate. There's no harm in having them stored. (The clearStoredAccessToken method would only clear tokens for the current SDK, not the old ones, anyway.)</description>
    <pubDate>Tue, 13 Jun 2017 21:53:53 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2017-06-13T21:53:53Z</dc:date>
    <item>
      <title>How to clearStoredAccessToken for tokens that fail migration?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-clearStoredAccessToken-for-tokens-that-fail-migration/m-p/225607#M12254</link>
      <description>&lt;P&gt;I am using&amp;nbsp;&lt;SPAN class="s1"&gt;DBClientsManager::checkAndPerformV1TokenMigration to migrate my&lt;SPAN&gt;Dropbox Objective-C API v1&lt;/SPAN&gt; access tokens to&lt;SPAN&gt;Dropbox Objective-C API v2.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="s1"&gt;As a part of the error handling if a token fails to migrate, I am guessing I should be clearing the stored access token by calling DBOAuthManager::&lt;SPAN&gt;clearStoredAccessToken and&amp;nbsp;prompt the user to acquire a new v2 access token.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="s1"&gt;&lt;SPAN&gt;However this method takes a tokenUid. Since these are v1 tokens I only have access to&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;DropboxUserID, AccessToken, AccessTokenSecret and StoredAppKey. How do I clear the access token from the Auth Manager or the Key Chain?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p1"&gt;Thanks,&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;Rajul&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:21:39 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-clearStoredAccessToken-for-tokens-that-fail-migration/m-p/225607#M12254</guid>
      <dc:creator>rajul_texas</dc:creator>
      <dc:date>2019-05-29T09:21:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to clearStoredAccessToken for tokens that fail migration?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-clearStoredAccessToken-for-tokens-that-fail-migration/m-p/225609#M12255</link>
      <description>You don't need to clear old tokens that failed to migrate. There's no harm in having them stored. (The clearStoredAccessToken method would only clear tokens for the current SDK, not the old ones, anyway.)</description>
      <pubDate>Tue, 13 Jun 2017 21:53:53 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-clearStoredAccessToken-for-tokens-that-fail-migration/m-p/225609#M12255</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-06-13T21:53:53Z</dc:date>
    </item>
  </channel>
</rss>

