Quick example for 2FA using nextjs, node-2fa and firebase
Requirement:
- Firebase auth (email)
- Firebase firestore
How to install:
- Clone this repo
- run
npm install
- run
npm run dev
and open localhost:3000
App Flow:
- Create account
- Signin using your account
- Activate 2FA and follow the instruction
- Signout and try to login using user that already setup the 2FA