- Autheticate the user using Facebook.
- Autheticate the user using Gmail.
- Authenticate the user using 2Factor otp authentication
- Generate same token for all the above methods to interact with db securely
- NodeJs
- MongoDB
- Passport.js
- mongoose
- jwt
- passport-facebook
- passport-google-oauth20
git clone https://github.com/Manjeete/passport-with-mongoose.git
cd passport-with-mongoose
npm install
DATABASE=<datbase_url>
FactorAPIKey=<2factor_api_key>
GOOGLE_CLIENT_ID=<google_client_id>
GOOGLE_CLIENT_SECRET=<google_client_secret>
FACEBOOK_APP_ID=<facebook_app_id>
FACEBOOK_APP_SECRET=<facebook_app_secret>
JWT_SECRET_KEY=<jwt_secret_key>
npm start