<?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: Short lived access token on new account - serverless function in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Short-lived-access-token-on-new-account-serverless-function/m-p/504300#M24950</link>
    <description>&lt;P&gt;You can get a refresh token via the OAuth app authorization flow and store and re-use that server-side without any further manual user interaction if you wish.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As for the short-lived access token you're getting, it sounds like you may be using the "Generate" button. That only enables you to easily get access tokens, not refresh tokens. If you do want a long-lived access token from that, you'd need to set the&amp;nbsp;"Access token expiration" setting to "No expiration" before generating the access token.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In any case, I&amp;nbsp;recommend first 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 reference first to see how these work. If something then isn't working as expected, please post here to show the part that isn't working and we'll be happy to take a look. For instance, post the code and unexpected output, etc. Don't post any access/refresh tokens or app secrets themselves though.&lt;/P&gt;</description>
    <pubDate>Fri, 12 Mar 2021 16:28:07 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2021-03-12T16:28:07Z</dc:date>
    <item>
      <title>Short lived access token on new account - serverless function</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Short-lived-access-token-on-new-account-serverless-function/m-p/504142#M24945</link>
      <description>&lt;P&gt;I have a serverless function that accesses a Dropbox app folder using the access token generated in the app console to downloads files. It is triggered through a push notification from Dropbox. This happens in the background with no user interaction. I have been developing using my own Dropbox account and have had no problem with the token expiring. I've now switched to a different gmail email address used by the project I'm developing for and created an app in the same way. This time I get a token prefixed with 'sl' that expires. I've followed the instructions here:&amp;nbsp;&lt;A href="https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Tokens-only-valid-for-4-hours-from-app-console/m-p/425358/highlight/true#M22718" target="_blank" rel="noopener"&gt;https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Tokens-only-valid-for-4-hours-from-app-console/m-p/425358/highlight/true#M22718&lt;/A&gt;&amp;nbsp;But still get an 'sl' prefixed token that expires. Please can anyone advise why I'm getting different types of tokens between the 2 accounts and how to get a long life token? Alternatively, is there any way to refresh a token through a serverless function. Many thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Mar 2021 17:36:59 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Short-lived-access-token-on-new-account-serverless-function/m-p/504142#M24945</guid>
      <dc:creator>katec3</dc:creator>
      <dc:date>2021-03-12T17:36:59Z</dc:date>
    </item>
    <item>
      <title>Re: Short lived access token on new account - serverless function</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Short-lived-access-token-on-new-account-serverless-function/m-p/504300#M24950</link>
      <description>&lt;P&gt;You can get a refresh token via the OAuth app authorization flow and store and re-use that server-side without any further manual user interaction if you wish.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As for the short-lived access token you're getting, it sounds like you may be using the "Generate" button. That only enables you to easily get access tokens, not refresh tokens. If you do want a long-lived access token from that, you'd need to set the&amp;nbsp;"Access token expiration" setting to "No expiration" before generating the access token.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In any case, I&amp;nbsp;recommend first 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 reference first to see how these work. If something then isn't working as expected, please post here to show the part that isn't working and we'll be happy to take a look. For instance, post the code and unexpected output, etc. Don't post any access/refresh tokens or app secrets themselves though.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Mar 2021 16:28:07 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Short-lived-access-token-on-new-account-serverless-function/m-p/504300#M24950</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2021-03-12T16:28:07Z</dc:date>
    </item>
    <item>
      <title>Re: Short lived access token on new account - serverless function</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Short-lived-access-token-on-new-account-serverless-function/m-p/504732#M24968</link>
      <description>&lt;P&gt;Many thanks&amp;nbsp;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/10"&gt;@Greg-DB&lt;/a&gt;&amp;nbsp;, much appreciated&lt;/P&gt;</description>
      <pubDate>Mon, 15 Mar 2021 08:53:34 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Short-lived-access-token-on-new-account-serverless-function/m-p/504732#M24968</guid>
      <dc:creator>katec3</dc:creator>
      <dc:date>2021-03-15T08:53:34Z</dc:date>
    </item>
  </channel>
</rss>

