User Finder
This class performs GET requests against the user resource in the OpenGate North API.
constructor
Constructor
Parámetros
| Nombre | Tipo | Opcional | Descripción |
|---|---|---|---|
| ogapi | InternalOpenGateAPI |
❌ | Reference to the API object. |
findByEmail(email)
Find a specify user by a email. This execute a GET http method
Parámetros
| Nombre | Tipo | Opcional | Descripción |
|---|---|---|---|
string |
❌ | Email of the user. |
Retorna
Tip
Tipo: Promise
findByEmailAndPassword(email, password)
Find a specific user with apiKey by a email and password. This execute a GET http method
Parámetros
| Nombre | Tipo | Opcional | Descripción |
|---|---|---|---|
string |
❌ | Email of the user. | |
| password | string |
❌ | password of the user. |
Retorna
Tip
Tipo: Promise