I have already created a website using MEAN.

Now, I want to add an authentication page, from where we can sign in with Google, GitHub, Facebook and LinkedIn, or sign up with an email, like follows.

Does anyone know if there is any existing code that we could use to build this? This is a quite common need, it would be astonishing if one has to build everything from scratch.

enter image description here

1 Answer 1


Scotch has a series on "Easy Node Authentication", specifically using Passport.js.

Passport has over 300 different authentication "strategies", including:

For your standalone email authentication, OAuth2orize can be used with Passport authentication strategies and application-specific route handlers to assemble a server that implements the OAuth 2.0 protocol.

  • Do you have example of it being used in the MEAN stack?
    – Nicolas Raoul
    Oct 27, 2017 at 7:18
  • That tutorial in Scotch is a little bit outdated, and I cannot make it run.
    – SoftTimur
    Oct 28, 2017 at 8:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.