jaredhanson / passport

Simple, unobtrusive authentication for Node.js.
https://www.passportjs.org?utm_source=github&utm_medium=referral&utm_campaign=passport&utm_content=about
MIT License
22.87k stars 1.24k forks source link

deserializeUser not triggering through browser, but working with postman #653

Open swamywta opened 6 years ago

swamywta commented 6 years ago

In my MEAN project, I have used passport authentication and calling login service from angular 5 service. When I hit the login service from browser I am getting success response but userdata coming as null, but userdata coming properly when I hit service through postman.

I have consoled in deserializeUser but this deserializeUser not triggering when I tried through browser.

ghost commented 6 years ago

Perhaps your browser differently distinguishes data, you need to write a language-platform-independent serialization code.