the all event handlers are added. it's a Map data structure(key-value), the key is event type, and the value is event handler.
Database object
Database Connection Settings
Checks if password is correct
The username to check against
The password to check
create event object.
event type
Create and add a new user to the database
Username of user to add
Password of new user
Deletes given user by username
Username of user
fire the specified event, and you can to pass a data. When fired, every handler attached to that event will be executed. But, if it's an once event, listen off it immediately after called handler.
event type
get the handlers for the specified event type.
event type
Gets user details from id lookup
ID of user
Gets user details from username lookup
Username of user
check whether the specified event has been listen on.
or check whether the events by type has been listen on, when if only type
argument is passed.
event type
Get if connection string is being used (as opposed to config options)
event handler validator.
event handler
event type validator.
event type
listen off an event by type and handler. or listen off events by type, when if only type argument is passed. or listen off all events, when if no arguments are passed.
listen off all events, that means every event will be emptied.
listen on a new event by type and handler. if listen on, the true is returned, otherwise the false. The handler will not be listen if it is a duplicate.
event type, it must be a unique string.
event handler, when if the same handler is passed, listen it by only once.
listen on an once event by type and handler. when the event is fired, that will be listen off immediately and automatically. The handler will not be listen if it is a duplicate.
event type, it must be a unique string.
event handler, when if the same handler is passed, listen it by only once.
Generated using TypeDoc
Class representing authentication module