-
Sign in to easyauth.io and create a new 'Registered Client' with redirect URI set to
http://127.0.0.1:3000/auth/easyauth/callback
-
Clone the example app from https://github.com/easyauth-io/easyauth-passport-example
git clone https://github.com/easyauth-io/easyauth-passport-example
-
Edit
.env
and set the parameters from your 'Registered Client' that you created in Step 1 -
Run
npm install
followed bynpm run start
easyauth-io/easyauth-passport-example
Example of authentication in Express.js using Passport.js through EasyAuth
JavaScriptMIT