🔥Boilerplate Project for Authentication with Firebase in React.
Branch: master
Clone or download
Latest commit 076e79f Feb 5, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
public init app Sep 9, 2017
src Correct typo Feb 5, 2019
.gitignore deploy to firebase Dec 3, 2018
.prettierrc add prettierrc Nov 14, 2018
.travis.yml fix travis to node 10 Dec 6, 2018
README.md Update README.md Dec 12, 2018
firebase.json deploy to firebase Dec 3, 2018
package-lock.json upgrade libraries Dec 3, 2018
package.json adjust version Dec 3, 2018



Build Status Slack Greenkeeper badge



  • uses:
    • only React (create-react-app)
    • firebase
    • react-router
  • features:
    • Sign In
    • Sign Up
    • Sign Out
    • Password Forget
    • Password Change
    • Verification Email
    • Protected Routes with Authorization
    • Roles-based Authorization
    • Social Logins with Google, Facebook and Twitter
    • Linking of Social Logins on Account dashboard
    • Auth Persistence with Local Storage
    • Database with Users and Messages


Commercial license

If you want to use this starter project to develop commercial sites, themes, projects, and applications, the Commercial license is the appropriate license. With this option, your source code is kept proprietary. Purchase an commercial license for different team sizes:

It grants you also access to the other starter projects in this GitHub organization.

Open source license

If you are creating an open source application under a license compatible with the GNU GPL license v3, you may use this starter project under the terms of the GPLv3.


  • git clone git@github.com:the-road-to-react-with-firebase/react-firebase-authentication.git
  • cd react-firebase-authentication
  • npm install
  • npm start
  • visit http://localhost:3000

Get an overview of Firebase, how to create a project, what kind of features Firebase offers, and how to navigate through the Firebase project dashboard in this visual tutorial for Firebase.

Firebase Configuration

  • copy/paste your configuration from your Firebase project's dashboard into one of these files
    • src/components/Firebase/firebase.js file
    • .env file
    • .env.development and .env.production files

The .env or .env.development and .env.production files could look like the following then:


Activate Sign-In Methods


Activate Verification E-Mail

  • add a redirect URL for redirecting a user after an email verification into one of these files
    • src/components/Firebase/firebase.js file
    • .env file
    • .env.development and .env.production files

The .env or .env.development and .env.production files could look like the following then (excl. the Firebase configuration).