Want to see pretty graphs? Log in now!
npm install model-auth
|8||downloads in the last month|
|Last Published By|
|Version||0.0.2 last updated a year ago|
Server-side plugin for modella. Supports auto-salting, password hashing (using pbkdf2) and authorization.
auth introduces the following methods to your modella models:
Authorize your model with
password. Returns the model's
id if the given credentials are correct, will return
false if they don't match up, or an
err if something bad happened.
- Allow custom attributes. Right now, plugin requires