<?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: How to add force_reapprove to the sdk.js in Discuss Dropbox Developer &amp; API</title>
    <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/How-to-add-force-reapprove-to-the-sdk-js/m-p/539049#M2084</link>
    <description>&lt;P&gt;I'm glad to hear you were able to get it working already.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For reference though, it's technically safer to parse the URL and set the parameter, instead of just adding it as a string. For instance, you could do something like:&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;var modifiedAuthUrl = new URL(authUrl);
modifiedAuthUrl.searchParams.set('force_reapprove', true);
modifiedAuthUrl = modifiedAuthUrl.href;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 12 Aug 2021 18:36:07 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2021-08-12T18:36:07Z</dc:date>
    <item>
      <title>How to add force_reapprove to the sdk.js</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/How-to-add-force-reapprove-to-the-sdk-js/m-p/539023#M2081</link>
      <description>&lt;P&gt;I'm having trouble with adding the force_reapprove to my code when using the sdk js package. When a user is already logged in I don't want it to skip the process of app consent just in case my user has more than one dropbox account they want to use with my app.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Aug 2021 11:43:35 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/How-to-add-force-reapprove-to-the-sdk-js/m-p/539023#M2081</guid>
      <dc:creator>paevans</dc:creator>
      <dc:date>2021-08-13T11:43:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to add force_reapprove to the sdk.js</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/How-to-add-force-reapprove-to-the-sdk-js/m-p/539041#M2082</link>
      <description>&lt;P&gt;The official Dropbox JavaScript SDK doesn't have the 'force_reapprove' option built in, but I'll pass this along as a feature request. I can't promise if or when that might be implemented though.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You should be able to add that to the URL returned by &lt;A href="https://dropbox.github.io/dropbox-sdk-js/global.html#getAuthenticationUrl__anchor" target="_self"&gt;getAuthenticationUrl&lt;/A&gt; though. Can you share what you have so far, and what specifically you're having trouble with?&lt;/P&gt;</description>
      <pubDate>Thu, 12 Aug 2021 18:13:45 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/How-to-add-force-reapprove-to-the-sdk-js/m-p/539041#M2082</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2021-08-12T18:13:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to add force_reapprove to the sdk.js</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/How-to-add-force-reapprove-to-the-sdk-js/m-p/539044#M2083</link>
      <description>&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;const&lt;/SPAN&gt; &lt;SPAN&gt;dropboxUrl&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;=&amp;gt;&lt;/SPAN&gt; &lt;SPAN&gt;{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;const&lt;/SPAN&gt; &lt;SPAN&gt;authUrl&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;await&lt;/SPAN&gt; &lt;SPAN&gt;dbx&lt;/SPAN&gt;&lt;SPAN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;SPAN&gt;=&amp;gt;&lt;/SPAN&gt; &lt;SPAN&gt;`${&lt;/SPAN&gt;&lt;SPAN&gt;authUrl&lt;/SPAN&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;SPAN&gt;&amp;amp;force_reapprove=true&lt;/SPAN&gt;&lt;SPAN&gt;`&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;return&lt;/SPAN&gt; &lt;SPAN&gt;authUrl&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&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;I took your suggestion and was able to get it working! Thank you for your help!&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 12 Aug 2021 18:20:22 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/How-to-add-force-reapprove-to-the-sdk-js/m-p/539044#M2083</guid>
      <dc:creator>paevans</dc:creator>
      <dc:date>2021-08-12T18:20:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to add force_reapprove to the sdk.js</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/How-to-add-force-reapprove-to-the-sdk-js/m-p/539049#M2084</link>
      <description>&lt;P&gt;I'm glad to hear you were able to get it working already.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For reference though, it's technically safer to parse the URL and set the parameter, instead of just adding it as a string. For instance, you could do something like:&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;var modifiedAuthUrl = new URL(authUrl);
modifiedAuthUrl.searchParams.set('force_reapprove', true);
modifiedAuthUrl = modifiedAuthUrl.href;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Aug 2021 18:36:07 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/How-to-add-force-reapprove-to-the-sdk-js/m-p/539049#M2084</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2021-08-12T18:36:07Z</dc:date>
    </item>
  </channel>
</rss>

