Skip to content

MartinCastroAlvarez/react-firebase-oauth

Repository files navigation

React Firebase Oauth 2.0

React application implementing Oauth 2.0 with Firebase

wallpaper.jpg

References

Architecture

File Description
src/App.jsx Main application hook.
src/Fire.jsx Firebase configuration file.
src/layout/Nav.jsx Navigation bar component.
src/layout/Loading.jsx Loading message.
src/views/Home.jsx Home view.
src/views/Login.jsx Login view.
src/views/SignUp.jsx Sign up view.

Instructions

Install the dependencies

cd react-firebase-oauth
npm install

In the Firebase console, add a project.

provider.png

In the Firebase console, update the list of authorized domains.

domains.png

In the Firebase console, look at the settings of your project

settings.png

Set the following environment variables

export FIREBASE_PROJECT_ID="nisman-464ff"
export FIREBASE_API_KEY="AIzaSyBnEERUNiBattmkurwJw0bU7TcWSTiHP5o"
export FIREBASE_AUTH_DOMAIN="nisman-464ff.firebaseapp.com"
export FIREBASE_STORAGE_BUCKET="nisman-464ff.appspot.com"
export FIREBASE_MESSAGING_SENDER_ID="836894511184"
export FIREBASE_APP_ID="1:836894511184:web:def52338e409c23e618155"

Start the app

npm run dev

Visit the home page

home.png

Visit the login page

login.png

Validate you are authenticated now

authenticated.png

About

React application implementing Oauth 2.0 with Firebase

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published