sails.js - Authentication as a Sails hook -
as doc says, hooks allow sails code shared between apps , developers without having modify framework
. there public boilerplates on github social or local authentication think hook system more interesting doing cloning special project each time.
- is way sails hooks should used?
- should create 1 hook each type of authentication system (like passport strategies) or have global auth hook?
thanks advance!
i start implement hook passport embedded here : https://github.com/jaumard/sails-hook-passport
try , let me know if have problems.
Comments
Post a Comment