Passport.js makes it easy to set up OAuth2 login strategies from all identity providers. Build a basic login screen that allows signing in with a Google account. Save and manage user data in MongoDB. Give useful notifications using Express Flash to the user. Launch the app by running, npm install -g saaS-authentication.
Table of contents
IntroductionSetup the Google Cloud ProjectSetup the Node.js projectSet up a basic Express ServerStart a Local Mongo DBAdd MongoDB Connection to AppCreate the User ModelSet up Passport.js for GoogleSave User DetailsBuild the UI - Google Login screenAdd Flash MessagesBuild the UI - Profile screenLogout a UserNext StepsSort: