Our great sponsors
-
nodejs-social-auth-starter
Code for setting up multi-provider (Google, Github, Amazon) social authentication using Nodejs, MongoDB, and Passportjs. Also includes multiple account login functionality.
-
SurveyJS
Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
-
CheatSheetSeries
The OWASP Cheat Sheet Series was created to provide a concise collection of high value information on specific application security topics.
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
Throughout the article, we will be working with a sample project which can you find here.
For Github, head over to your Settings > Developer Settings > OAuth apps and create a new app.
To make sure this patch gets on to the remote repository, you can use the patch-package to modify node-oauth's code.
Session Management Cheatsheet
Passportjs also provides documentation for nearly every strategy. We will follow the documentation for Google OAuth2 strategy in this section.