<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/firebase-crash-course-auth-firestore-3---logging-users-in-out-evyzqrkql" -->

---
title: Firebase Crash Course (Auth & Firestore) #3 - Logging...
description: A beginner-level walkthrough of implementing Firebase Authentication in a web app, covering how to sign users out and log them back in using the...
canonical: https://daily.dev/posts/firebase-crash-course-auth-firestore-3---logging-users-in-out-evyzqrkql
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Firebase Crash Course (Auth & Firestore) #3 - Logging Users In & Out | daily.dev
og:description: A beginner-level walkthrough of implementing Firebase Authentication in a web app, covering how to sign users out and log them back in using the...
og:url: https://daily.dev/posts/firebase-crash-course-auth-firestore-3---logging-users-in-out-evyzqrkql
og:image: https://api.daily.dev/og/posts/eVYZqRkQL.png
og:image:alt: Firebase Crash Course (Auth & Firestore) #3 - Logging Users In & Out
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Firebase Crash Course (Auth & Firestore) #3 - Logging Users In & Out

**[Net Ninja](https://daily.dev/sources/netninja)** · 2 min read · 0 upvotes · 0 comments

## Summary

A beginner-level walkthrough of implementing Firebase Authentication in a web app, covering how to sign users out and log them back in using the signInWithEmailAndPassword function from the Firebase SDK. The tutorial demonstrates using async/await with try/catch blocks, passing the auth instance along with email and password credentials, and logging the resulting user object to the console.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.youtube.com/watch?v=RzpQfdvCh34>

## Questions this post answers

### How do I log a user in with Firebase using signInWithEmailAndPassword?

Import signInWithEmailAndPassword from the Firebase SDK, then call it inside an async function with await, passing the auth instance, the email state, and the password state as the three arguments. Wrap the call in a try/catch block so errors like an incorrect password or nonexistent email are caught and logged. The returned result contains a user property representing the logged-in user.

_daily.dev surfaces practical walkthroughs for developers wiring up Firebase auth flows like this one._

## Similar posts on daily.dev

- [Authentication made easy: Building a secure e-commerce shopping cart with Firebase](https://daily.dev/posts/authentication-made-easy-building-a-secure-e-commerce-shopping-cart-with-firebase-pnlz7lysc) · Firebase · 0 upvotes · 0 comments

---

Tags: [#javascript](https://daily.dev/tags/javascript), [#authentication](https://daily.dev/tags/authentication), [#firebase](https://daily.dev/tags/firebase), [#firestore](https://daily.dev/tags/firestore)

[View this post on daily.dev](https://daily.dev/posts/firebase-crash-course-auth-firestore-3---logging-users-in-out-evyzqrkql)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Firebase Crash Course (Auth & Firestore) #3 - Logging Users In & Out","url":"https://daily.dev/posts/firebase-crash-course-auth-firestore-3---logging-users-in-out-evyzqrkql","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/firebase-crash-course-auth-firestore-3---logging-users-in-out-evyzqrkql"},"datePublished":"2026-07-21T09:54:46.494Z","dateModified":"2026-09-13T19:16:12.422Z","description":"A beginner-level walkthrough of implementing Firebase Authentication in a web app, covering how to sign users out and log them back in using the...","image":"https://i.ytimg.com/vi/RzpQfdvCh34/sddefault.jpg","thumbnailUrl":"https://i.ytimg.com/vi/RzpQfdvCh34/sddefault.jpg","isAccessibleForFree":true,"articleSection":"Net Ninja","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Net Ninja","logo":"https://media.daily.dev/image/upload/s--IXsAE5jo--/f_auto/v1718348103/logos/netninja","url":"https://daily.dev/sources/netninja"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/firebase-crash-course-auth-firestore-3---logging-users-in-out-evyzqrkql","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"javascript,authentication,firebase,firestore","timeRequired":"PT2M","video":{"@type":"VideoObject","name":"Firebase Crash Course (Auth & Firestore) #3 - Logging Users In & Out","description":"A beginner-level walkthrough of implementing Firebase Authentication in a web app, covering how to sign users out and log them back in using the...","thumbnailUrl":"https://i.ytimg.com/vi/RzpQfdvCh34/sddefault.jpg","uploadDate":"2026-07-21T09:54:46.494Z","duration":"PT2M","url":"https://api.daily.dev/r/eVYZqRkQL","embedUrl":"https://www.youtube.com/embed/RzpQfdvCh34"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Net Ninja","item":"https://daily.dev/sources/netninja"},{"@type":"ListItem","position":3,"name":"Firebase Crash Course (Auth & Firestore) #3 - Logging Users In & Out"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/firebase-crash-course-auth-firestore-3---logging-users-in-out-evyzqrkql#faq","mainEntity":[{"@type":"Question","name":"How do I log a user in with Firebase using signInWithEmailAndPassword?","acceptedAnswer":{"@type":"Answer","text":"Import signInWithEmailAndPassword from the Firebase SDK, then call it inside an async function with await, passing the auth instance, the email state, and the password state as the three arguments. Wrap the call in a try/catch block so errors like an incorrect password or nonexistent email are caught and logged. The returned result contains a user property representing the logged-in user. daily.dev surfaces practical walkthroughs for developers wiring up Firebase auth flows like this one."}}]}
```

