senecajs / seneca-auth

A Seneca user authentication plugin for Hapi and Express
http://senecajs.org
MIT License
33 stars 29 forks source link

Custom action callback #3

Closed floridemai closed 11 years ago

floridemai commented 11 years ago

The default passport callback it's not called anymore, but the user can specify an action in the config which will replace passport's default behaviour. If an action is set up in the config the user must add "authorize-[action]" command to seneca in his app. If an action is not present the default behavior that we had before will take place: register and autologin.