jaredhanson / passport-linkedin

LinkedIn authentication strategy for Passport and Node.js.
https://www.passportjs.org/packages/passport-linkedin/?utm_source=github&utm_medium=referral&utm_campaign=passport-linkedin&utm_content=about
MIT License
141 stars 71 forks source link

stateless session #8

Closed yamsellem closed 10 years ago

yamsellem commented 10 years ago

It seems to me that some strategies provide a stateless option that allow to avoid the serializeUser call and the session save.

My needs is to connect a user with a local strategy and add accounts to this existing session. So, I need to deactivate the session round trip of other 'strategy'.

Thanks.

yamsellem commented 10 years ago

I guess passport.authenticate('linkedin', {session:false}) is working :)

I'm having another problem (and will close this once everything is fine, I hope soon).

samcus commented 7 years ago

@yamsellem I added '{session: false}' and I still get the error about session being required, any ideas?

samcus commented 7 years ago

@yamsellem I ended up using https://github.com/auth0/passport-linkedin-oauth2 instead.