Module

Auth

This module contains the controllers for handling user authentication, including login, signup, password reset,

View Source client/src/utils/api/auth.ts, line 3

Methods

# static forgotpassword(payload) → {Promise.<object>}

handle forgot-password endpoint

Parameters:
Name Type Description
payload object

request data

View Source client/src/utils/api/auth.ts, line 31

response data

Promise.<object>

# static login(payload) → {Promise.<object>}

handle login endpoint

Parameters:
Name Type Description
payload object

request data

View Source client/src/utils/api/auth.ts, line 22

response data

Promise.<object>

# static resetpassword(payload) → {object}

handle reset-password endpoint

Parameters:
Name Type Description
payload object

request data

View Source client/src/utils/api/auth.ts, line 40

response data

object

# static signUp(payload) → {Promise.<object>}

handle signup endpoint

Parameters:
Name Type Description
payload object

request data

View Source client/src/utils/api/auth.ts, line 14

response data

Promise.<object>

# static verifyEmail(payload) → {object}

handle verifyEmail endpoint

Parameters:
Name Type Description
payload object

request data

View Source client/src/utils/api/auth.ts, line 49

response data

object