This module contains the controllers for handling user authentication, including login, signup, password reset,
Methods
# static forgotpassword(payload) → {Promise.<object>}
handle forgot-password endpoint
Parameters:
Name | Type | Description |
---|---|---|
payload |
object
|
request data |
response data
Promise.<object>
# static login(payload) → {Promise.<object>}
handle login endpoint
Parameters:
Name | Type | Description |
---|---|---|
payload |
object
|
request data |
response data
Promise.<object>
# static resetpassword(payload) → {object}
handle reset-password endpoint
Parameters:
Name | Type | Description |
---|---|---|
payload |
object
|
request data |
response data
object
# static signUp(payload) → {Promise.<object>}
handle signup endpoint
Parameters:
Name | Type | Description |
---|---|---|
payload |
object
|
request data |
response data
Promise.<object>
# static verifyEmail(payload) → {object}
handle verifyEmail endpoint
Parameters:
Name | Type | Description |
---|---|---|
payload |
object
|
request data |
response data
object