<?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: Access token keeps expiring after few hours in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Access-token-keeps-expiring-after-few-hours/m-p/589094#M27441</link>
    <description>&lt;P&gt;Dropbox is in the process of switching to only issuing short-lived access tokens (and optional refresh tokens) instead of long-lived access tokens. You can find &lt;A href="https://dropbox.tech/developers/migrating-app-permissions-and-access-tokens" rel="noopener noreferrer" target="_blank"&gt;more information on this migration here&lt;/A&gt;.&lt;BR /&gt;&lt;BR /&gt;Apps can still get long-term access by requesting "offline" access though, in which case the app receives a "refresh token" that can be used to retrieve new short-lived access tokens as needed, without further manual user intervention. You can find more information in the &lt;A href="https://developers.dropbox.com/oauth-guide" rel="noopener noreferrer" target="_blank"&gt;OAuth Guide&lt;/A&gt; and &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#authorization" rel="noopener noreferrer" target="_blank"&gt;authorization documentation&lt;/A&gt;. You can find an example of using a refresh token to get a new short-lived access token, without manual interaction, here, under &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#oauth2-token" rel="noopener noreferrer" target="_blank"&gt;"Example: refresh token request"&lt;/A&gt;.&lt;BR /&gt;&lt;BR /&gt;For reference, while the creation of new long-lived access tokens is now deprecated, we don't currently have a plan to disable existing long-lived access tokens. (If that changes, we will of course announce that ahead of time.) That being the case, you can continue using existing long-lived access token(s) without interruption, if you have any. Also, note though that after the change you won't be able to create new long-lived access tokens.&lt;/P&gt;</description>
    <pubDate>Thu, 07 Apr 2022 14:59:53 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2022-04-07T14:59:53Z</dc:date>
    <item>
      <title>Access token keeps expiring after few hours</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Access-token-keeps-expiring-after-few-hours/m-p/588996#M27435</link>
      <description>&lt;P&gt;We use Dropbox API as follows&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://api.dropboxapi.com/oauth2/token" target="_blank" rel="noopener"&gt;https://api.dropboxapi.com/oauth2/token&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"grant_type" =&amp;gt; "authorization_code",&lt;BR /&gt;"code" =&amp;gt; code,&lt;BR /&gt;"redirect_uri" =&amp;gt; redirect_uri,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We receive access_token, but after few hours they expire and user again has to go through Authorizaion process.&lt;/P&gt;&lt;P&gt;We read about refresh token. How can refresh tokens be used to retrieve short live token so that user does not have to go through authorization process. We use rudy SDK. It would be great if you can provide some sample code to use refresh token&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Apr 2022 05:14:05 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Access-token-keeps-expiring-after-few-hours/m-p/588996#M27435</guid>
      <dc:creator>dolphin automation</dc:creator>
      <dc:date>2022-04-08T05:14:05Z</dc:date>
    </item>
    <item>
      <title>Re: Access token keeps expiring after few hours</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Access-token-keeps-expiring-after-few-hours/m-p/589094#M27441</link>
      <description>&lt;P&gt;Dropbox is in the process of switching to only issuing short-lived access tokens (and optional refresh tokens) instead of long-lived access tokens. You can find &lt;A href="https://dropbox.tech/developers/migrating-app-permissions-and-access-tokens" rel="noopener noreferrer" target="_blank"&gt;more information on this migration here&lt;/A&gt;.&lt;BR /&gt;&lt;BR /&gt;Apps can still get long-term access by requesting "offline" access though, in which case the app receives a "refresh token" that can be used to retrieve new short-lived access tokens as needed, without further manual user intervention. You can find more information in the &lt;A href="https://developers.dropbox.com/oauth-guide" rel="noopener noreferrer" target="_blank"&gt;OAuth Guide&lt;/A&gt; and &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#authorization" rel="noopener noreferrer" target="_blank"&gt;authorization documentation&lt;/A&gt;. You can find an example of using a refresh token to get a new short-lived access token, without manual interaction, here, under &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#oauth2-token" rel="noopener noreferrer" target="_blank"&gt;"Example: refresh token request"&lt;/A&gt;.&lt;BR /&gt;&lt;BR /&gt;For reference, while the creation of new long-lived access tokens is now deprecated, we don't currently have a plan to disable existing long-lived access tokens. (If that changes, we will of course announce that ahead of time.) That being the case, you can continue using existing long-lived access token(s) without interruption, if you have any. Also, note though that after the change you won't be able to create new long-lived access tokens.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Apr 2022 14:59:53 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Access-token-keeps-expiring-after-few-hours/m-p/589094#M27441</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2022-04-07T14:59:53Z</dc:date>
    </item>
  </channel>
</rss>

