<?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: Oauth2 refresh token question - what happens when the refresh token expires? in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Re-Oauth2-refresh-token-question-what-happens-when-the-refresh/m-p/551598#M26225</link>
    <description>&lt;P&gt;Thanks, can you share several sample 'X-Dropbox-Request-Id' response header values though?&lt;/P&gt;</description>
    <pubDate>Tue, 19 Oct 2021 15:24:10 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2021-10-19T15:24:10Z</dc:date>
    <item>
      <title>Re: Oauth2 refresh token question - what happens when the refresh token expires?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Re-Oauth2-refresh-token-question-what-happens-when-the-refresh/m-p/548678#M26123</link>
      <description>&lt;P&gt;When I'm trying to fetch short-lived access token I'm getting this error&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;Client error: `POST &lt;A href="https://api.dropbox.com/oauth2/token`" target="_blank" rel="noopener nofollow noreferrer"&gt;https://api.dropbox.com/oauth2/token`&lt;/A&gt; resulted in a &lt;SPAN&gt;400 Bad Request&lt;/SPAN&gt; response: {"error_description": "missing required field \"grant_type\"", "error": "unsupported_grant_type"}&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Tue, 05 Oct 2021 11:58:00 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Re-Oauth2-refresh-token-question-what-happens-when-the-refresh/m-p/548678#M26123</guid>
      <dc:creator>divyesh</dc:creator>
      <dc:date>2021-10-05T11:58:00Z</dc:date>
    </item>
    <item>
      <title>Re: Oauth2 refresh token question - what happens when the refresh token expires?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Re-Oauth2-refresh-token-question-what-happens-when-the-refresh/m-p/548739#M26126</link>
      <description>&lt;P&gt;Can you share the code you're using that produces this error? Based on the error message, it sounds like you're not supplying the "grant_type" parameter when calling &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#oauth2-token" target="_self"&gt;the /oauth2/token endpoint&lt;/A&gt;. That "grant_type" parameter should be set to either "authorization_code", when exchanging an authorization code for an access token and optionally a refresh token, or "refresh_token" when using a refresh token to get a new short-lived access token.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Oct 2021 15:01:50 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Re-Oauth2-refresh-token-question-what-happens-when-the-refresh/m-p/548739#M26126</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2021-10-04T15:01:50Z</dc:date>
    </item>
    <item>
      <title>Re: Oauth2 refresh token question - what happens when the refresh token expires?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Re-Oauth2-refresh-token-question-what-happens-when-the-refresh/m-p/549983#M26169</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your reply&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have resolved an error and also get the access token which was needed but that one is not working.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have used this link token for testing and it's working fine and it it oauth1&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://dropbox.github.io/dropbox-api-v2-explorer/#auth_token/from_oauth1" target="_blank" rel="noopener"&gt;https://dropbox.github.io/dropbox-api-v2-explorer/#auth_token/from_oauth1&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Access Token : sl.A6K&amp;lt;REDACTED&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I need Oauth2 access token, How to get that token?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Oct 2021 16:25:36 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Re-Oauth2-refresh-token-question-what-happens-when-the-refresh/m-p/549983#M26169</guid>
      <dc:creator>divyesh</dc:creator>
      <dc:date>2021-10-11T16:25:36Z</dc:date>
    </item>
    <item>
      <title>Re: Oauth2 refresh token question - what happens when the refresh token expires?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Re-Oauth2-refresh-token-question-what-happens-when-the-refresh/m-p/550017#M26173</link>
      <description>&lt;P&gt;The access token you posted, which starts with "sl.", is a Dropbox OAuth 2 access token. Note that you should never post these publicly though, so please refrain from doing so in the future.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The "sl." prefix indicates that this particular access token is a "short-lived" access token, meaning that it was only valid for four hours, after which it can no longer be used to successfully perform Dropbox API calls. When a short-lived access token like this expires, if you need to make further calls, you would need to get a new one. You would do so either by using a refresh token, or by processing the OAuth app authorization flow again. I recommend reading &lt;A href="https://developers.dropbox.com/oauth-guide" target="_self"&gt;the OAuth Guide&lt;/A&gt; and &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#authorization" target="_self"&gt;authorization documentation&lt;/A&gt; for more information.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, the "token/from_oauth1" route in particular you linked to is only meant for use with old OAuth 1 access tokens, retrieved from the old retired Dropbox API v1. If you do not have old OAuth 1 access tokens stored that you need to migrate, you should not use that route. If you are just developing your integration now, you would not have any OAuth 1 access tokens.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Oct 2021 17:41:16 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Re-Oauth2-refresh-token-question-what-happens-when-the-refresh/m-p/550017#M26173</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2021-10-11T17:41:16Z</dc:date>
    </item>
    <item>
      <title>Re: Oauth2 refresh token question - what happens when the refresh token expires?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Re-Oauth2-refresh-token-question-what-happens-when-the-refresh/m-p/551267#M26209</link>
      <description>&lt;P&gt;Yes I followed the same oauth process and i found the token starting with sl.&amp;lt;token&amp;gt; but i'm getting this error using that token&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Server error: `POST &lt;A href="https://api.dropboxapi.com/2/files/search_v2" target="_blank"&gt;https://api.dropboxapi.com/2/files/search_v2&lt;/A&gt;` resulted in a `500 Internal Server Error` response: unexpected error occurred&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Oct 2021 06:20:10 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Re-Oauth2-refresh-token-question-what-happens-when-the-refresh/m-p/551267#M26209</guid>
      <dc:creator>divyesh</dc:creator>
      <dc:date>2021-10-18T06:20:10Z</dc:date>
    </item>
    <item>
      <title>Re: Oauth2 refresh token question - what happens when the refresh token expires?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Re-Oauth2-refresh-token-question-what-happens-when-the-refresh/m-p/551343#M26217</link>
      <description>&lt;P&gt;A 500 error like that should indicate an issue on the Dropbox servers. If you're still seeing this issue, please share the code/steps to reproduce that, as well as several sample 'X-Dropbox-Request-Id' response header values. That should help us investigate. (Be sure to redact your access token though.) Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 18 Oct 2021 14:33:09 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Re-Oauth2-refresh-token-question-what-happens-when-the-refresh/m-p/551343#M26217</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2021-10-18T14:33:09Z</dc:date>
    </item>
    <item>
      <title>Re: Oauth2 refresh token question - what happens when the refresh token expires?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Re-Oauth2-refresh-token-question-what-happens-when-the-refresh/m-p/551480#M26223</link>
      <description>&lt;P&gt;Here is my code&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;env(&lt;/SPAN&gt;&lt;SPAN&gt;'DROPBOX_TOKEN'&lt;/SPAN&gt;&lt;SPAN&gt;) is access token sl.&amp;lt;access token&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;$this&lt;/SPAN&gt;&lt;SPAN&gt;-&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;client &lt;/SPAN&gt;&lt;SPAN&gt;= &lt;/SPAN&gt;&lt;SPAN&gt;new &lt;/SPAN&gt;&lt;SPAN&gt;Client(env(&lt;/SPAN&gt;&lt;SPAN&gt;'DROPBOX_TOKEN'&lt;/SPAN&gt;&lt;SPAN&gt;))&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;$this&lt;/SPAN&gt;&lt;SPAN&gt;-&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;adapter &lt;/SPAN&gt;&lt;SPAN&gt;= &lt;/SPAN&gt;&lt;SPAN&gt;new &lt;/SPAN&gt;&lt;SPAN&gt;DropboxAdapter(&lt;/SPAN&gt;&lt;SPAN&gt;$this&lt;/SPAN&gt;&lt;SPAN&gt;-&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;client&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;SPAN&gt;$checkFolderAvailable &lt;/SPAN&gt;&lt;SPAN&gt;= &lt;/SPAN&gt;&lt;SPAN&gt;$this&lt;/SPAN&gt;&lt;SPAN&gt;-&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;client&lt;/SPAN&gt;&lt;SPAN&gt;-&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;search&lt;/SPAN&gt;&lt;SPAN&gt;('test'&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;in this search function i'm getting 500 error&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Oct 2021 04:50:36 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Re-Oauth2-refresh-token-question-what-happens-when-the-refresh/m-p/551480#M26223</guid>
      <dc:creator>divyesh</dc:creator>
      <dc:date>2021-10-19T04:50:36Z</dc:date>
    </item>
    <item>
      <title>Re: Oauth2 refresh token question - what happens when the refresh token expires?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Re-Oauth2-refresh-token-question-what-happens-when-the-refresh/m-p/551598#M26225</link>
      <description>&lt;P&gt;Thanks, can you share several sample 'X-Dropbox-Request-Id' response header values though?&lt;/P&gt;</description>
      <pubDate>Tue, 19 Oct 2021 15:24:10 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Re-Oauth2-refresh-token-question-what-happens-when-the-refresh/m-p/551598#M26225</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2021-10-19T15:24:10Z</dc:date>
    </item>
  </channel>
</rss>

