Skip to content

Instantly share code, notes, and snippets.

@nikshinde-7
Created January 12, 2022 09:40
Show Gist options
  • Save nikshinde-7/efeab965f30e9eabeda27a7070871714 to your computer and use it in GitHub Desktop.
Save nikshinde-7/efeab965f30e9eabeda27a7070871714 to your computer and use it in GitHub Desktop.
// serializeUser is just basically an lifecycle method in PassPortJS.
passport.serializeUser((user, done) => {
done(null, user);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment