0.0.4 • Published 6 years ago

opery-sequelize-user-auth-service v0.0.4

Weekly downloads
3
License
MIT
Repository
-
Last release
6 years ago

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