jaredhanson / passport-facebook

Facebook authentication strategy for Passport and Node.js.
https://www.passportjs.org/packages/passport-facebook/?utm_source=github&utm_medium=referral&utm_campaign=passport-facebook&utm_content=about
MIT License
1.29k stars 448 forks source link

How do I get flash message in front end? #192

Open wzup opened 7 years ago

wzup commented 7 years ago

An additional info message can be supplied to indicate the reason for the failure.

return done(null, false, { message: 'Incorrect password.' });

How do I get the message in front end in order to display it?

ghost commented 7 years ago

Any Reply on this question ?? I am facing the similar issue.

I am using angular-fullstack and I have setup Facebook and LinkedIn Strategy. I have two type of users and I have a common login for both. I want when an email is in use with one type of user and other user tries to sign up using same email address using social integration like linkedin/facebook, then they should be displayed error message after redirection to failureRedirect.

Can someone help me out ?