A demo project demonstrating authentication flow, including local authentication and OAuth with Google
- users can register with an email and provide a password.
- users can login with email & password.
- users can authenticate with a google account.
- users who aren't authenticated can't access /protected page.
- passwords must be more than 8 chars containing capital/small letters, numbers and special chars.
- Node.js & mongod
- MongoDB
- clone the repo.
- run npm install.
- run npm run dev.
- go to http://localhost:3000/