humble-auth
A hapi authentication strategy using humble-session.
Installation
npm i --save humble-auth
Usage
The plugin has to be registered and the authentication scheme created.
Humble-auth also needs the humble-session plugin for functioning.
var server = ;server; server;
API ### reply.login(user, cb)
Saves the passed user to the session, making him logged in.
Arguments
user
- The object the identifies the user.
cb(err)
- A callback which is called once the user was saved to the session.
Examples
/*...*/request;
Removes the current user from the session, terminating his login session.
Arguments
cb(err)
- Optional A callback which is called once the user is removed from
the session.
Examples
request;
License
MIT