Skip to content

A template for using the firebase auth and integrating into Reactjs using usecontext hook.

Notifications You must be signed in to change notification settings

ritish1082/Context-Firebase

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Firebase Auth using useContext Hook

A template for using the firebase auth and integrating into Reactjs using usecontext hook.

App layout

├── public                   # Compiled files (alternatively `dist`)
├── src
    ├── App.js               # UserContext wrapped in App.js
    ├── Firebase.js          # Firebase config + export functions of auth, db, signIn
    ├── UserContext.js       # export a userContext
    ├── Home.js              # Home UI - only seen when user is logged in
    ├── Login.js             # Login UI - default page when user is logged out.
    ├── index.js             # Index.js
    . . .
└── README.md

Further Scope

Only available for Google signIn extend to GitHub, Facebook, Email and Password stored in user collection.

References

  1. Firebase Auth
  2. ReactJS UseContext
  3. Pedro Tech Youtube

About

A template for using the firebase auth and integrating into Reactjs using usecontext hook.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published