opery-sequelize-user-auth-service
v0.0.4
Published
Sequelize user auth service for opery
Downloads
4
Maintainers
Readme
opery-sequelize-user-auth-service
Sequelize user authentication service for opery
Description
This service adds auth methods for an Sequelize User Model
Requirements
- You need a Sequelize User Model to use this service.
- Sequelize User Model should have an username field.
Installation
npm install --save opery-sequelize-user-auth-service
Methods
db.models.User
authenticate(username: String, password: String) -> Boolean
Try to find an user to authenticate
gerUserByUsername(username: String) -> Boolean
Try to find an user by his username
License
MIT © Guillermo Lopez