sails101 / using-passport

How do I use Passport with my Sails app?
67 stars 14 forks source link

How is this different than using the auth generator ? #2

Open gunish opened 10 years ago

gunish commented 10 years ago

I came across this ?

https://github.com/kasperisager/sails-generate-auth

spent a bunch of time trying to get a local strategy working, and then came across your example.

What is the advantage of using a hook vs this, and which one is a better way to implement passport authentication ?