Skip to content

bmpickford/firebase-auth-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Firebase Auth with React Hooks

A simple example app showcasing how to use firebase with react hooks

Setup

You will need to setup a GCP/Firebase account and create a project for authorization to work

Then add an .env file with the following config which can be retreived from your Firebase console

REACT_APP_FIREBASE_PUBLIC_API_KEY=
REACT_APP_FIREBASE_AUTH_DOMAIN=
REACT_APP_FIREBASE_DATABASE_URL=
REACT_APP_FIREBASE_PROJECT_ID=
REACT_APP_FIREBASE_MEASUREMENT_ID=

Running

yarn start

Contributing

Any improvements welcome

Some areas to improve/expand:

  • Example getting/saving data using the hooks
  • Tests
  • Include signin/logout in styled header

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published