controllers/authController

Controller for authentication-related operations.

Methods

(static) login(req, res) → {Promise.<void>}

Login a user.
Source:
Parameters:
Name Type Description
req Request The request object.
res Response The response object.
Returns:
Type:
Promise.<void>

(static) register(req, res) → {Promise.<void>}

Register a new user.
Source:
Parameters:
Name Type Description
req Request The request object.
res Response The response object.
Returns:
Type:
Promise.<void>

(static) whoami(req, res) → {void}

Get the user's information.
Source:
Parameters:
Name Type Description
req Request The request object.
res Response The response object.
Returns:
Type:
void