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.

  1. is way sails hooks should used?
  2. 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

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -