<?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: Invalid access token when generating new token after revoke() API V2 in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Invalid-access-token-when-generating-new-token-after-revoke-API/m-p/221670#M11772</link>
    <description>Thanks! I'll ask the team to update the documentation.</description>
    <pubDate>Wed, 17 May 2017 17:59:45 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2017-05-17T17:59:45Z</dc:date>
    <item>
      <title>Invalid access token when generating new token after revoke() API V2</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Invalid-access-token-when-generating-new-token-after-revoke-API/m-p/221598#M11764</link>
      <description>&lt;P&gt;I am getting a "invalid_access_token"&amp;nbsp;when trying to generate a new token, after the first token has been revoked, e.g. log out, then log back in again. I am using API V2 on Android.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First&lt;/P&gt;&lt;PRE&gt;DropboxClientFactory.&lt;SPAN&gt;init&lt;/SPAN&gt;(XYZ.getApiToken())&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt;DbxClientV2 dbxClientV2 = DropboxClientFactory.&lt;SPAN&gt;getClient&lt;/SPAN&gt;()&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt;dbxClientV2.auth().&lt;SPAN&gt;tokenRevoke&lt;/SPAN&gt;()&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then running through the oAuth flow again and obtaining the new (verified as different token) and finally calling:&lt;/P&gt;&lt;PRE&gt;DropboxClientFactory.&lt;SPAN&gt;init&lt;/SPAN&gt;(Auth.&lt;SPAN&gt;getOAuth2Token&lt;/SPAN&gt;())&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt;DbxClientV2 dbxClientV2 = DropboxClientFactory.&lt;SPAN&gt;getClient&lt;/SPAN&gt;()&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;PRE&gt;dbxClientV2.users().getCurrentAccount()&lt;/PRE&gt;&lt;P&gt;I hit the invalid access token. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The first pass works fine, but after I revoke and regenerate I am stuck in a loop as the oAuth keeps failing.&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:22:39 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Invalid-access-token-when-generating-new-token-after-revoke-API/m-p/221598#M11764</guid>
      <dc:creator>mattcmf</dc:creator>
      <dc:date>2019-05-29T09:22:39Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid access token when generating new token after revoke() API V2</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Invalid-access-token-when-generating-new-token-after-revoke-API/m-p/221619#M11765</link>
      <description>&lt;P&gt;Resolved this myself using the solution from here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/dropbox/dropbox-sdk-java/issues/92" target="_blank"&gt;https://github.com/dropbox/dropbox-sdk-java/issues/92&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(Specifically&amp;nbsp;steps 3 and 4).&lt;/P&gt;&lt;P&gt;The documentation is very unclear on the flow for re-authentication for API 2, in addition the sample project does not contain an example of how to use revoke token.&amp;nbsp;May I suggest that the documentation is updated to reflect the hotfix mentioned in the github post?&lt;/P&gt;</description>
      <pubDate>Wed, 17 May 2017 13:14:34 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Invalid-access-token-when-generating-new-token-after-revoke-API/m-p/221619#M11765</guid>
      <dc:creator>mattcmf</dc:creator>
      <dc:date>2017-05-17T13:14:34Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid access token when generating new token after revoke() API V2</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Invalid-access-token-when-generating-new-token-after-revoke-API/m-p/221670#M11772</link>
      <description>Thanks! I'll ask the team to update the documentation.</description>
      <pubDate>Wed, 17 May 2017 17:59:45 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Invalid-access-token-when-generating-new-token-after-revoke-API/m-p/221670#M11772</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-05-17T17:59:45Z</dc:date>
    </item>
  </channel>
</rss>

