Starter using React and Firebase authentication
- Create Firebase project.
- In Firebase Authentication dashboard create a user.
- Set Firebase config values in
src/.env
andsrc/firebase/firebase.js
. - Comment out
isAdmin
condition inserver/src/index.js
exportcreateUser
. - Replace
!!payload['admin']
withtrue
inclient/src/components/Session/withAuthentication
method 'componentDidMount'. - In
server/.firebasesrc
setdefault
to your Firebase project name. cd server && firebase use default
.cd client && yarn start
.- Log in with the user created in the Firebase console.
- On the Users page create a new user and select the
admin
role. - Logout then login as the new admin user.
- Delete the first user you created.
- Uncomment
isAdmin
condition inserver/src/index.js
exportcreateUser
. - Revert
true
to!!payload['admin']
inclient/src/components/Session/withAuthentication
method 'componentDidMount'. - Change Widgets to desired name.