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.93k stars 1.24k forks source link

Multiple Instances of a Single Strategy #289

Open gunish opened 10 years ago

gunish commented 10 years ago

I support this questions has been asked before, but in the context of a local strategy, My scenario is slightly different,

I would like to authenticate two twitter accounts. Assume that I want a merged result from both the accounts, Dosen't seem to be possible,

My user Model has an array [] of passports, but when i try and create a second instance of the same passport strategy, it bombs out.

An example implementation would be awesome!

Neppord commented 9 years ago

1+