senecajs / seneca-auth

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

is a callback needed here? #45

Closed rjrodger closed 8 years ago

rjrodger commented 9 years ago

https://github.com/rjrodger/seneca-auth/blob/0.5.0/auth.js#L216

in general avoid callbacks unless there is async work

mirceaalexandru commented 9 years ago

it is an async work

seneca.add({role: plugin, cmd: 'mapFields'}, aliasfields)

I added this function as seneca action because I want to give the possibility to override it