All Projects → the-road-to-react-with-firebase → React Firebase Authentication

the-road-to-react-with-firebase / React Firebase Authentication

Licence: mit
🔥 Boilerplate Project for Authentication with Firebase in React.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to React Firebase Authentication

React Mobx Firebase Authentication
🔥Boilerplate Project for Authentication with Firebase in React and MobX
Stars: ✭ 111 (-87.14%)
Mutual labels:  create-react-app, firebase, firebase-database, authentication, authorization, firebase-auth, firebase-authentication, react-router-v4
React Redux Firebase Authentication
🔥Boilerplate Project for Authentication with Firebase in React and Redux
Stars: ✭ 265 (-69.29%)
Mutual labels:  create-react-app, firebase, firebase-database, authentication, authorization, firebase-auth, firebase-authentication, react-router-v4
React Gatsby Firebase Authentication
🐣🔥Starter Project / Boilerplate for Authentication with Firebase and plain React in Gatsby.js
Stars: ✭ 356 (-58.75%)
Mutual labels:  firebase, firebase-database, authentication, authorization, firebase-auth, firebase-authentication
Nextjs Redux Firebase Authentication
Boilerplate Project for Authentication with Firebase in NextJs and Redux
Stars: ✭ 90 (-89.57%)
Mutual labels:  firebase, firebase-database, authentication, authorization, firebase-auth, firebase-authentication
Firebase Admin Java
Firebase Admin Java SDK
Stars: ✭ 345 (-60.02%)
Mutual labels:  firebase, firebase-database, authentication, firebase-auth, firebase-authentication
Firebase Ios Sdk
Firebase iOS SDK
Stars: ✭ 3,309 (+283.43%)
Mutual labels:  firebase, firebase-database, authentication, firebase-auth, firebase-authentication
Firebase Js Sdk
Firebase Javascript SDK
Stars: ✭ 3,844 (+345.42%)
Mutual labels:  firebase, firebase-database, firebase-auth, firebase-authentication
Firebase Admin Node
Firebase Admin Node.js SDK
Stars: ✭ 1,050 (+21.67%)
Mutual labels:  firebase, firebase-database, firebase-auth, firebase-authentication
The Road To React With Firebase
📓The Road to React with Firebase: Your journey to build business applications with React and Firebase.
Stars: ✭ 82 (-90.5%)
Mutual labels:  firebase, firebase-database, firebase-auth, firebase-authentication
React Firebase Hooks
React Hooks for Firebase.
Stars: ✭ 2,227 (+158.05%)
Mutual labels:  firebase, firebase-database, firebase-auth, firebase-authentication
Firebase Php
Unofficial Firebase Admin SDK for PHP
Stars: ✭ 1,657 (+92%)
Mutual labels:  firebase, firebase-database, firebase-auth, firebase-authentication
Rxfirebase
Rxjava 2.0 wrapper on Google's Android Firebase library.
Stars: ✭ 509 (-41.02%)
Mutual labels:  firebase, firebase-database, firebase-auth, firebase-authentication
Laravel Firebase
A Laravel package for the Firebase PHP Admin SDK
Stars: ✭ 369 (-57.24%)
Mutual labels:  firebase, firebase-database, firebase-auth, firebase-authentication
Firebase Admin Python
Firebase Admin Python SDK
Stars: ✭ 591 (-31.52%)
Mutual labels:  firebase, authentication, firebase-auth, firebase-authentication
Vuejs Firebase Shopping Cart
Shopping cart demo using Vuejs and Firebase
Stars: ✭ 274 (-68.25%)
Mutual labels:  firebase, firebase-database, firebase-auth
Material Kit React
React Dashboard made with Material UI’s components. Our pro template contains features like TypeScript version, authentication system with Firebase and Auth0 plus many other
Stars: ✭ 3,465 (+301.51%)
Mutual labels:  firebase, authentication, firebase-auth
Internalappstore
📦 Manage your own internal Android App Store.
Stars: ✭ 295 (-65.82%)
Mutual labels:  firebase, firebase-database, firebase-auth
Mechahamster
Mecha Hamster is a game where you roll through customizable environments that you can share with your friends.
Stars: ✭ 314 (-63.62%)
Mutual labels:  firebase, firebase-database, firebase-auth
Firebase Mock
Firebase mock library for writing unit tests
Stars: ✭ 319 (-63.04%)
Mutual labels:  firebase, firebase-database, firebase-auth
react-firebase-t3chfest
T3chFest 2017 Workshop about React + Firebase
Stars: ✭ 42 (-95.13%)
Mutual labels:  create-react-app, firebase-auth, firebase-database

react-firebase-authentication

Build Status Slack Greenkeeper badge

Variations

Features

  • 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

License

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.

Installation

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:

REACT_APP_API_KEY=AIzaSyBtxZ3phPeXcsZsRTySIXa7n33NtQ
REACT_APP_AUTH_DOMAIN=react-firebase-s2233d64f8.firebaseapp.com
REACT_APP_DATABASE_URL=https://react-firebase-s2233d64f8.firebaseio.com
REACT_APP_PROJECT_ID=react-firebase-s2233d64f8
REACT_APP_STORAGE_BUCKET=react-firebase-s2233d64f8.appspot.com
REACT_APP_MESSAGING_SENDER_ID=701928454501

Activate Sign-In Methods

firebase-enable-google-social-login_640

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).

Development:

REACT_APP_CONFIRMATION_EMAIL_REDIRECT=http://localhost:3000

Production:

REACT_APP_CONFIRMATION_EMAIL_REDIRECT=https://mydomain.com

Security Rules

{
  "rules": {
    ".read": false,
    ".write": false,
    "users": {
      "$uid": {
        ".read": "$uid === auth.uid || root.child('users/'+auth.uid).child('roles').hasChildren(['ADMIN'])",
        ".write": "$uid === auth.uid || root.child('users/'+auth.uid).child('roles').hasChildren(['ADMIN'])"
      },
      ".read": "root.child('users/'+auth.uid).child('roles').hasChildren(['ADMIN'])",
      ".write": "root.child('users/'+auth.uid).child('roles').hasChildren(['ADMIN'])"
    },
    "messages": {
      ".indexOn": ["createdAt"],
      "$uid": {
        ".write": "data.exists() ? data.child('userId').val() === auth.uid : newData.child('userId').val() === auth.uid"
      },
      ".read": "auth != null",
      ".write": "auth != null",
    },
  }
}
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].