User authentication is often the hardest part of building any web app, especially if you want to integrate multiple providers. Having a profile is one of the most common features you will need to add on your projects. Now all the tough work has been done for you as a templete build in React
that will allow you in just a few minutes to authenticate using Firebase service.
- react 16.12.0
- react-dom 16.12.0
- react-redux 7.1.3
- react-router-dom 5.1.2
- react-intl 3.6.2
- redux 4.0.4
- redux-form 8.2.6
- firebase 7.4.0
- styled-components 4.4.1
- react-rainbow-components 1.11.0
- eslint 6.1.0
- stylelint 12.0.0
- cypress 3.7.0
- Ideal authentication UI and security solution for modern Single Page Apps
- Supports local login with username, e-mail and password using best security practices
- Supports social login with Facebook and Google using best security practices
- User profile page with the ability to update your current password, username and e-mail
- Sends system emails for password reset
- Facebook and Google integration fully tested
- Integration test with Cypress
- These instructions are basic, you can use any method to do this work.
- Make a new folder for your repo
- Start a Git instance and copy over template files
- Overwrite this README
- Make sure to change the repo title
- Make sure to change the
manifest.json
on thepublic
folder - Make sure to change the
firebase.js
on thesrc
folder
Add Firebase to your JavaScript project
- On the Facebook for Developers site, get the App ID and an App Secret for your app
- Enable Facebook Login:
- In the Firebase console, open the Auth section.
- On the Sign in method tab, enable the Facebook sign-in method and specify the App ID and App Secret you got from Facebook.
- Then, make sure your OAuth redirect URI (e.g.
my-app-12345.firebaseapp.com/__/auth/handler
) is listed as one of your OAuth redirect URIs in your Facebook app's settings page on the Facebook for Developers site in the Product Settings > Facebook Login config.
- Enable Google Sign-In in the Firebase console:
- In the Firebase console, open the Auth section.
- On the Sign in method tab, enable the Google sign-in method and click Save.
- In the Firebase console, open the Auth section.
- On the Sign in method tab, enable the GitHub provider.
- Add the Client ID and Client Secret from that provider's developer console to the provider configuration:
- Register your app as a developer application on GitHub and get your app's OAuth 2.0 Client ID and Client Secret.
- Make sure your Firebase OAuth redirect URI (e.g.
my-app-12345.firebaseapp.com/__/auth/handler
) is set as your Authorization callback URL in your app's settings page on your GitHub app's config.
- Click Save.
This is an open-source projectOpen maintained by Nexxtway Corp.