<?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: Dropbox API - Invalid redirect URI (Error 400) with React Native Expo in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-API-Invalid-redirect-URI-Error-400-with-React-Native/m-p/765263#M33476</link>
    <description>&lt;P&gt;I was able to figure it out, what you need to do is divide your scheme into two parts like such:&lt;/P&gt;&lt;P&gt;Scheme registered and built in the mobile app -&amp;nbsp;&lt;SPAN&gt;com.kkanchev94.esignapp://oauth&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Use the code from &lt;A href="https://docs.expo.dev/guides/authentication/#dropbox" target="_blank" rel="noopener nofollow noreferrer"&gt;https://docs.expo.dev/guides/authentication/#dropbox&lt;/A&gt;&lt;/P&gt;&lt;P&gt;- on scheme divide your redirect URI as the following template:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;redirectUri&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;makeRedirectUri&lt;/SPAN&gt;&lt;SPAN&gt;(&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;scheme&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;com.kkanchev94.esignapp&lt;/SPAN&gt;&lt;SPAN&gt;"&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;path&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;oauth&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; }&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;DIV&gt;&lt;SPAN&gt;Omit the "://", it will be added automatically&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Hope that helps, this is for an Expo built project.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Sat, 20 Apr 2024 15:33:43 GMT</pubDate>
    <dc:creator>kkanchev94</dc:creator>
    <dc:date>2024-04-20T15:33:43Z</dc:date>
    <item>
      <title>Dropbox API - Invalid redirect URI (Error 400) with React Native Expo</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-API-Invalid-redirect-URI-Error-400-with-React-Native/m-p/765256#M33475</link>
      <description>&lt;P&gt;I am building a React native app and trying to integrate the Dropbox API.&lt;/P&gt;
&lt;P&gt;I'm following expo's app auth guide:&amp;nbsp;&lt;A href="https://docs.expo.dev/guides/authentication/#dropbox" target="_blank" rel="noopener"&gt;https://docs.expo.dev/guides/authentication/#dropbox&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;and I have the App registered with a scheme in the redirect URI's as:&amp;nbsp;&lt;SPAN&gt;com.kkanchev94.esignapp://oauth&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;and the same one registered and build with that scheme in the mobile app, but I keep receiving the same error over and over.&lt;/P&gt;
&lt;P&gt;Tried with with a different schemes - which I registered on the Dropbox API side as well, but without any luck.&lt;/P&gt;
&lt;P&gt;Has anyone faced the same challenges with the invalid redirect URI for building on a mobile app and&lt;/P&gt;
&lt;P&gt;how should I go about resolving it. Much appreciated!!&lt;/P&gt;</description>
      <pubDate>Mon, 22 Apr 2024 09:29:09 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-API-Invalid-redirect-URI-Error-400-with-React-Native/m-p/765256#M33475</guid>
      <dc:creator>kkanchev94</dc:creator>
      <dc:date>2024-04-22T09:29:09Z</dc:date>
    </item>
    <item>
      <title>Re: Dropbox API - Invalid redirect URI (Error 400) with React Native Expo</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-API-Invalid-redirect-URI-Error-400-with-React-Native/m-p/765263#M33476</link>
      <description>&lt;P&gt;I was able to figure it out, what you need to do is divide your scheme into two parts like such:&lt;/P&gt;&lt;P&gt;Scheme registered and built in the mobile app -&amp;nbsp;&lt;SPAN&gt;com.kkanchev94.esignapp://oauth&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Use the code from &lt;A href="https://docs.expo.dev/guides/authentication/#dropbox" target="_blank" rel="noopener nofollow noreferrer"&gt;https://docs.expo.dev/guides/authentication/#dropbox&lt;/A&gt;&lt;/P&gt;&lt;P&gt;- on scheme divide your redirect URI as the following template:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;redirectUri&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;makeRedirectUri&lt;/SPAN&gt;&lt;SPAN&gt;(&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;scheme&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;com.kkanchev94.esignapp&lt;/SPAN&gt;&lt;SPAN&gt;"&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;path&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;oauth&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; }&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;DIV&gt;&lt;SPAN&gt;Omit the "://", it will be added automatically&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Hope that helps, this is for an Expo built project.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sat, 20 Apr 2024 15:33:43 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-API-Invalid-redirect-URI-Error-400-with-React-Native/m-p/765263#M33476</guid>
      <dc:creator>kkanchev94</dc:creator>
      <dc:date>2024-04-20T15:33:43Z</dc:date>
    </item>
  </channel>
</rss>

