<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Fada on Medium]]></title>
        <description><![CDATA[Stories by Fada on Medium]]></description>
        <link>https://medium.com/@fada2022?source=rss-df104169071b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*2hxecbi5EMkWZNJi.jpg</url>
            <title>Stories by Fada on Medium</title>
            <link>https://medium.com/@fada2022?source=rss-df104169071b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 13:49:03 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@fada2022/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Prototype A React App with Firebase Authentication Quickly]]></title>
            <link>https://medium.com/@fada2022/prototype-a-react-app-with-firebase-authentication-quickly-f827783b8a5d?source=rss-df104169071b------2</link>
            <guid isPermaLink="false">https://medium.com/p/f827783b8a5d</guid>
            <category><![CDATA[prototype]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[firebase]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[authentication]]></category>
            <dc:creator><![CDATA[Fada]]></dc:creator>
            <pubDate>Sun, 23 Jan 2022 09:07:39 GMT</pubDate>
            <atom:updated>2022-02-04T01:24:19.221Z</atom:updated>
            <content:encoded><![CDATA[<p>Firebase provides a set of ready-to-use services for fast prototyping. Even better, it provides libraries like <a href="https://github.com/firebase/firebaseui-web-react">firebaseui-web-react</a> and <a href="https://github.com/firebase/firebaseui-web">firebaseui-web</a> for developers to bootstrap their apps. In this article, I will share how to build Firebase authentication flows quickly with these two libraries, and share my take on the tradeoffs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SXSzH71CeYeDYofHHImodQ.png" /></figure><p>To get started, you will want to <a href="https://create-react-app.dev/">create a React app</a> and <a href="https://firebase.google.com/">a Firebase project</a>. Add Firebase to the React project by following <a href="https://fburl.com/x25wsqv6">this document</a>. Now that you have set up the project and Firebase, let’s start to add the Firebase auth UI.</p><p><strong>Step 1: Install the library</strong></p><pre>npm install --save react-firebaseui</pre><p><strong>Step 2: Use the library</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/08cf1d4dc1d1663bf8c2d60fc731fcdb/href">https://medium.com/media/08cf1d4dc1d1663bf8c2d60fc731fcdb/href</a></iframe><p><strong>Step 3: Fix the compatibility issue</strong></p><p>You probably have noticed that in the code above we’re importing firebase modules through paths like firebase/compat/app. This is because the library is <a href="https://fburl.com/v88c3ttr">incompatible with the latest firebase v9 JS SDK</a>. Most of the problems have already been solved by using compat modules. The last step is to initialize the firebase app again with the same config that you used to initialize the app with v9 SDK.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/48dafe0118d9a1c7009b790c69508b2a/href">https://medium.com/media/48dafe0118d9a1c7009b790c69508b2a/href</a></iframe><p>Now, the page will load successfully.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/597/1*uNOlcPRQD1oLrEHr_wzZFQ.png" /></figure><p><strong>Step 4: Enable auth methods in Firebase console</strong></p><p>If you click Sign in with Facebook or Sign in with phone, it will show errors like “Error(auth/configuration-not-found)”. You can go to the Firebase console and enable the corresponding auth methods.</p><p><strong>Step 5: Configure the auth options</strong></p><p>Remember that you can always configure options for certain auth methods. For example, you can configure the reCAPTCHA of the phone login to be invisible (I must admit that reCAPTCHA challenges are hard, I often fail the test).</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/d484ea9ad3caee5b29f075a53d25d8c9/href">https://medium.com/media/d484ea9ad3caee5b29f075a53d25d8c9/href</a></iframe><p>Nice! Now, you have a working auth flow.</p><h3>Conclusion</h3><p>The library provides a quick way to build the auth flows of almost all the major auth methods. If you just want to prototype something out, the library is a great tool to boost your speed.</p><p>However, you should also be aware of the downsides of the library. In particular, as I perviously mentioned, it’s not fully compatible with the v9 web SDK. It also seems that <a href="https://github.com/firebase/firebaseui-web/issues/837#issuecomment-951111654">it will not get v9 SDK support in the short term </a>. More importantly, the UI isn’t fully customizable.</p><p>With that, I will end the article here. Thanks for reading my first Medium story.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f827783b8a5d" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>