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:

  • Reference InternalOpenGateAPI - to the API object.

findByEmail
function findByEmail(email: string) -> 'Promise'

Find a specify user by a email. This execute a GET http method

Arguments:

  • email string - 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:

  • email string - Email of the user.
  • password string - password of the user.

Returns:

  • Promise