User Finder
UserFinder
UserFinder Objects
class UserFinder()This class allow make get request to user resource into Opengate North API.
constructor
function constructor()Constructor
Arguments:
ReferenceInternalOpenGateAPI - to the API object.
findByEmail
function findByEmail(email: string) -> 'Promise'Find a specify user by a email. This execute a GET http method
Arguments:
emailstring - Email of the user.
Returns:
Promise
findByEmailAndPassword
function findByEmailAndPassword(email: string,password: string) -> 'Promise'Find a specific user with apiKey by a email and password. This execute a GET http method
Arguments:
emailstring - Email of the user.passwordstring - password of the user.
Returns:
Promise