Name: Chinwike Anthony Maduabuchi Contact: chinwike.space
- Integrate phone number authentication.
- Implement a flow where:
- If a user first logs in with their Phone Number, they must authenticate with an Email Provider next to access the home page content.
- If a user first logs in with an Email Provider, they must authenticate with their Phone Number next to access the home page content.
- Ensure that linking a new email or phone number doesn't create a seperate user object in Firebase.
This project uses yarn as the package manager. To ensure the project runs correctly, follow the following steps:
- Install the Firebase CLI & download JDK on your machine.
- Create a new Firebase project.
- In the Authentication tab, enable the following providers: Email/Password, Phone, Google.
- Clone this project and run the following command:
yarn install
# then
yarn dev
- Rename the
./env.local.example
file to.env.local
and replace the variables with credentials from your Firebase project. - Do a codebase search for
FILL_ME_IN
and replace it with the value of yourNEXT_PUBLIC_FB_APP_NAME
env — don't useprocess.env
here.
Note: To be able to link an email address & password to a user account, you'd need to turn off the Email enumeration protection feature under User Actions in your Firebase Auth Settings. See solution and GitHub issue.