Authentication is used to verify a customer's identity using an email/password or a social login like Google, Facebook etc. Passport.js makes it easy to set up OAuth2 login strategies from all identity providers and acts a uniform interface between the user and the application. Build a local sign up/sign in button to authenticate users using a traditional email and password Save and manage user data in MongoDB Give useful notifications using Express Flash to the user.

4m read timeFrom saasbase.dev
Post cover image
Table of contents
IntroductionAdding RoutesBuilding the UIUI - Sign UpSave user profile on Sign UpRun the appUI - Sign InSet up Passport for Local Sign InRun the appLogout a UserNext Steps

Sort: