Firebase Authentication allows us to authenticate our users with API calls instead of custom password-hashing or OAuth logic
How to set up Firebase Authentication with React
Introduction
Firebase Authentication is a plug-and-play authentication solution for our apps. Source: Firebase
Firebase Authentication allows us to authenticate our apps' users, manage their accounts in the Firebase console and easily access user auth information from within our application. It makes authentication easy so we can focus on our app logic.
Start by reading the official Firebase Authentication tutorials linked below. Skip "Sign in with a pre-built UI" and "Get Started"; we will not use the former because it is currently incompatible with React 18, and we will go through the latter in the upcoming exercise.
We will almost certainly want to retrieve current user from the Auth object in our apps, e.g. to display logged-in user in places such as navbars, profile pages and comment bars.