User Finder
This class allow make get request to user resource into Opengate North API.
constructor
Constructor
Parámetros
| Nombre | Tipo | Opcional | Descripción |
|---|---|---|---|
| Reference | InternalOpenGateAPI |
❌ | 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