<?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: Authentication to dropbox in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Authentication-to-dropbox/m-p/681236#M30704</link>
    <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1693441"&gt;@Tshaniii&lt;/a&gt; Also, since you're using the Dropbox JavaScript SDK, you shouldn't manage those URL parameters directly anyway. You would use &lt;A href="https://dropbox.github.io/dropbox-sdk-js/global.html#getAuthenticationUrl__anchor" target="_blank"&gt;the getAuthenticationUrl method&lt;/A&gt; to build your authorization URL. &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And you shouldn't be passing the /oauth2/authorize authorization URL to &lt;A href="https://dropbox.github.io/dropbox-sdk-js/global.html#getAccessTokenFromCode__anchor" target="_blank"&gt;getAccessTokenFromCode&lt;/A&gt;. That method takes your redirect URI and the authorization code. From what you shared, your redirect URI is "&lt;A href="http://localhost:5000/auth/dropbox-redirect&amp;quot;" target="_blank"&gt;http://localhost:5000/auth/dropbox-redirect"&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can see &lt;A href="https://github.com/dropbox/dropbox-sdk-js/blob/b5631e4b5b0e9eb6d3297e1ee57ad29a63d49898/examples/javascript/simple-backend/code_flow_example.js#L35" target="_blank"&gt;an example of using this method here&lt;/A&gt;.&lt;/P&gt;</description>
    <pubDate>Tue, 02 May 2023 12:56:53 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2023-05-02T12:56:53Z</dc:date>
    <item>
      <title>Authentication to dropbox</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Authentication-to-dropbox/m-p/681047#M30700</link>
      <description>&lt;P&gt;1. I am developing an application, which will have about 4-6 users with different email addresses.&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. Then I have created a dropbox app and scope is the application folder (from this account)&lt;/P&gt;&lt;P&gt;3. So I did the part where you get the code, from there it is redirected to here --&amp;gt;&amp;nbsp;&lt;A target="_blank" rel="noopener"&gt;http://localhost:5000/auth/dropbox-redirect?code=&amp;lt;generated-code&amp;gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;4. However, i get an error.... this endpoint is the server side and the running code is this&amp;nbsp; (&lt;SPAN&gt;ocalhost:3000/dashboard - is frontend)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;const&lt;/SPAN&gt; &lt;SPAN&gt;dbxRedirect&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;async&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;SPAN&gt;req&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;res&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;next&lt;/SPAN&gt;&lt;SPAN&gt;) &lt;/SPAN&gt;&lt;SPAN&gt;=&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt; {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;try&lt;/SPAN&gt;&lt;SPAN&gt; {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;STRONG&gt;const { code, state } = req.query;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;console&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;log&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;`code:&lt;/SPAN&gt;&lt;SPAN&gt;${&lt;/SPAN&gt;&lt;SPAN&gt;code&lt;/SPAN&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;SPAN&gt;`&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;const&lt;/SPAN&gt; &lt;SPAN&gt;redirectUri&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;`&lt;A href="https://dropbox.com/oauth2/authorize?response_type=code&amp;amp;client_id=" target="_blank" rel="noopener"&gt;https://dropbox.com/oauth2/authorize?response_type=code&amp;amp;client_id=&lt;/A&gt;&lt;/SPAN&gt;&lt;SPAN&gt;${&lt;/SPAN&gt;&lt;SPAN&gt;process&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;env&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;DBX_APP_KEY&lt;/SPAN&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;SPAN&gt;&amp;amp;redirect_uri=&lt;A href="http://localhost:3000/dashboard&amp;amp;token_access_type=legacy" target="_blank" rel="noopener"&gt;http://localhost:3000/dashboard&amp;amp;token_access_type=legacy&lt;/A&gt;`&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;try&lt;/SPAN&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;let&lt;/SPAN&gt; &lt;SPAN&gt;token&lt;/SPAN&gt;&lt;SPAN&gt; = &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;await&lt;/SPAN&gt; &lt;SPAN&gt;dbx&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;auth&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;getAccessTokenFromCode&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;redirectUri&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;code&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;// store token and invalidate state&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;req&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;session&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;token&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;token&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;console&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;log&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;token&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;mycache&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;del&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;state&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;res&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;send&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;token&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/SPAN&gt;&lt;SPAN&gt;catch&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;error&lt;/SPAN&gt;&lt;SPAN&gt;){&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;console&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;log&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;error&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;return&lt;/SPAN&gt; &lt;SPAN&gt;next&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;error&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;};&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;FONT color="#FF9900"&gt;DropboxResponseError: Response failed with a 400 code&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF9900"&gt;at D:\GitHubProjects\docMgtSys\document-management-system\node_modules\dropbox\cjs\src\response.js:34:11&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF9900"&gt;at process.processTicksAndRejections (node:internal/process/task_queues:95:5)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF9900"&gt;at async dbxRedirect (D:\GitHubProjects\docMgtSys\document-management-system\controllers\auth-controller.js:136:26) {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF9900"&gt;status: 400,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF9900"&gt;headers: Headers {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF9900"&gt;[Symbol(map)]: [Object: null prototype] {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF9900"&gt;'content-security-policy': [Array],&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF9900"&gt;'content-type': [Array],&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF9900"&gt;'accept-encoding': [Array],&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF9900"&gt;date: [Array],&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF9900"&gt;server: [Array],&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF9900"&gt;'content-length': [Array],&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF9900"&gt;'x-dropbox-response-origin': [Array],&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF9900"&gt;'x-dropbox-request-id': [Array],&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF9900"&gt;connection: [Array]&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF9900"&gt;}&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF9900"&gt;},&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF9900"&gt;error: {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF9900"&gt;error: 'invalid_request',&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF9900"&gt;error_description: 'unknown field "token_access_type"'&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF9900"&gt;}&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF9900"&gt;}&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF9900"&gt;DropboxResponseError: Response failed with a 400 code&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF9900"&gt;at D:\GitHubProjects\docMgtSys\document-management-system\node_modules\dropbox\cjs\src\response.js:34:11&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF9900"&gt;at process.processTicksAndRejections (node:internal/process/task_queues:95:5)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF9900"&gt;at async dbxRedirect (D:\GitHubProjects\docMgtSys\document-management-system\controllers\auth-controller.js:136:26)&lt;/FONT&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;FONT color="#FF9900"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 02 May 2023 08:17:38 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Authentication-to-dropbox/m-p/681047#M30700</guid>
      <dc:creator>Tshaniii</dc:creator>
      <dc:date>2023-05-02T08:17:38Z</dc:date>
    </item>
    <item>
      <title>Re: Authentication to dropbox</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Authentication-to-dropbox/m-p/681231#M30703</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1693441"&gt;@Tshaniii&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;DIV&gt;...&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;const&lt;/SPAN&gt; &lt;SPAN&gt;redirectUri&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;`&lt;A href="https://dropbox.com/oauth2/authorize?response_type=code&amp;amp;client_id=" target="_blank" rel="noopener"&gt;https://dropbox.com/oauth2/authorize?response_type=code&amp;amp;client_id=&lt;/A&gt;&lt;/SPAN&gt;&lt;SPAN&gt;${&lt;/SPAN&gt;&lt;SPAN&gt;process&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;env&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;DBX_APP_KEY&lt;/SPAN&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;SPAN&gt;&amp;amp;redirect_uri=&lt;A href="http://localhost:3000/dashboard&amp;amp;token_access_type=legacy" target="_blank" rel="noopener"&gt;http://localhost:3000/dashboard&amp;amp;&lt;FONT color="#808000"&gt;token_access_type=&lt;FONT color="#FF0000"&gt;legacy&lt;/FONT&gt;&lt;/FONT&gt;&lt;/A&gt;`&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;...&lt;BR /&gt;&lt;FONT color="#FF9900"&gt;error: {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF9900"&gt;error: 'invalid_request',&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF9900"&gt;error_description: 'unknown field "token_access_type"'&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF9900"&gt;}&lt;/FONT&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;...&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Hi &lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1693441"&gt;@Tshaniii&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Hm..&lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@9AD39CA637682E9616FBE31CDAF1B6C4/emoticons/1f914.png" alt=":thinking_face:" title=":thinking_face:" /&gt; Yes, there is no such type of access token literal. 'legacy' is something assumed by default! In particular 'legacy' is the same like 'online' (but might change at some point in the future; as has been different thing in the past). Take a look in &lt;A title="Authorization" href="https://www.dropbox.com/developers/documentation/http/documentation#authorization" target="_blank" rel="noopener"&gt;documentation&lt;/A&gt; what 'token_access_type' can be. As is mentioned there, it's either 'online' or 'offline'; no other literal is allowed.&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PS: One more note about your 'redirectUri'! As assigned it's not a redirect URI; it's URL that you should redirect your users to authorize your application (grant access to their accounts data). The redirect URI is part of this URL!&lt;/P&gt;</description>
      <pubDate>Tue, 02 May 2023 12:57:42 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Authentication-to-dropbox/m-p/681231#M30703</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2023-05-02T12:57:42Z</dc:date>
    </item>
    <item>
      <title>Re: Authentication to dropbox</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Authentication-to-dropbox/m-p/681236#M30704</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1693441"&gt;@Tshaniii&lt;/a&gt; Also, since you're using the Dropbox JavaScript SDK, you shouldn't manage those URL parameters directly anyway. You would use &lt;A href="https://dropbox.github.io/dropbox-sdk-js/global.html#getAuthenticationUrl__anchor" target="_blank"&gt;the getAuthenticationUrl method&lt;/A&gt; to build your authorization URL. &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And you shouldn't be passing the /oauth2/authorize authorization URL to &lt;A href="https://dropbox.github.io/dropbox-sdk-js/global.html#getAccessTokenFromCode__anchor" target="_blank"&gt;getAccessTokenFromCode&lt;/A&gt;. That method takes your redirect URI and the authorization code. From what you shared, your redirect URI is "&lt;A href="http://localhost:5000/auth/dropbox-redirect&amp;quot;" target="_blank"&gt;http://localhost:5000/auth/dropbox-redirect"&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can see &lt;A href="https://github.com/dropbox/dropbox-sdk-js/blob/b5631e4b5b0e9eb6d3297e1ee57ad29a63d49898/examples/javascript/simple-backend/code_flow_example.js#L35" target="_blank"&gt;an example of using this method here&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 02 May 2023 12:56:53 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Authentication-to-dropbox/m-p/681236#M30704</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2023-05-02T12:56:53Z</dc:date>
    </item>
    <item>
      <title>Re: Authentication to dropbox</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Authentication-to-dropbox/m-p/681294#M30707</link>
      <description>&lt;P&gt;Thank you very much&amp;nbsp;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/10"&gt;@Greg-DB&lt;/a&gt;&amp;nbsp; &amp;amp;&amp;nbsp;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/422790"&gt;@Здравко&lt;/a&gt;&amp;nbsp;! Got it done &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@FBF7D2AB59A0D6E861EBF6A36F93B7E2/emoticons/1f642.png" alt=":slightly_smiling_face:" title=":slightly_smiling_face:" /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 02 May 2023 15:42:48 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Authentication-to-dropbox/m-p/681294#M30707</guid>
      <dc:creator>Tshaniii</dc:creator>
      <dc:date>2023-05-02T15:42:48Z</dc:date>
    </item>
  </channel>
</rss>

