<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Grace Kuti</title>
    <description>The latest articles on DEV Community by Grace Kuti (@eimaichari).</description>
    <link>https://dev.to/eimaichari</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3478106%2F55aa1338-e094-4ff9-9bd1-fe267f0fe585.jpg</url>
      <title>DEV Community: Grace Kuti</title>
      <link>https://dev.to/eimaichari</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/eimaichari"/>
    <language>en</language>
    <item>
      <title>My Journey with Firebase Authentication</title>
      <dc:creator>Grace Kuti</dc:creator>
      <pubDate>Thu, 04 Sep 2025 01:22:05 +0000</pubDate>
      <link>https://dev.to/eimaichari/my-journey-with-firebase-authentication-dbp</link>
      <guid>https://dev.to/eimaichari/my-journey-with-firebase-authentication-dbp</guid>
      <description>&lt;p&gt;Lessons learned building scalable auth systems for real-world apps. My first time using Firebase was a little nerve-wrecking to say the least, it were as if the entire console was screaming in my face. Although intimidated I dove in head-first and realized I was afraid for nothing. &lt;/p&gt;

&lt;p&gt;At first I was asking Gemini for EVERYTHING from how to set up a database to how to deploy my web-apps. But over time I started getting more familiar with it, although I may have forgotten how to set up admins more times than I'd like. I eventually learned that Firebase doesn’t have ‘roles’ built-in. You have to manage admin users either with custom claims or store roles in Firestore. That realization saved me a lot of repeated headaches.&lt;/p&gt;

&lt;p&gt;This is how I first logged in a user&lt;br&gt;
`import { initializeApp } from "firebase/app";&lt;br&gt;
import { getAuth, signInWithEmailAndPassword } from "firebase/auth";&lt;/p&gt;

&lt;p&gt;const firebaseConfig = {&lt;br&gt;
  apiKey: "YOUR_API_KEY",&lt;br&gt;
  authDomain: "your-app.firebaseapp.com",&lt;br&gt;
  projectId: "your-app",&lt;br&gt;
  storageBucket: "your-app.appspot.com",&lt;br&gt;
  messagingSenderId: "SENDER_ID",&lt;br&gt;
  appId: "APP_ID"&lt;br&gt;
};&lt;/p&gt;

&lt;p&gt;// Initialize Firebase&lt;br&gt;
const app = initializeApp(firebaseConfig);&lt;br&gt;
const auth = getAuth(app);&lt;/p&gt;

&lt;p&gt;// Example login&lt;br&gt;
signInWithEmailAndPassword(auth, "&lt;a href="mailto:user@example.com"&gt;user@example.com&lt;/a&gt;", "password123")&lt;br&gt;
  .then(userCredential =&amp;gt; {&lt;br&gt;
    console.log("Logged in:", userCredential.user);&lt;br&gt;
  })&lt;br&gt;
  .catch(error =&amp;gt; {&lt;br&gt;
    console.error("Error:", error.message);&lt;br&gt;
  });`&lt;/p&gt;

&lt;p&gt;Overall Firebase has made it very simple for me to navigate through it and understand the basics. Through this I realized that I created a mental block in my own head, a limit of some sorts up until I decided to throw myself off the deep-end, I sure am glad I did that. If you’re just starting with Firebase (or any new tool), don’t let fear hold you back. Dive in, break things, and you’ll learn faster than you think.&lt;/p&gt;

</description>
      <category>productivity</category>
      <category>frontend</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
