Service for user authentication, including registration and login.
- Source:
Methods
(static) login(email, password) → {Promise.<UserDTO>}
Logs a user into the system.
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
email |
*
|
The user's email. |
password |
*
|
The user's password. |
Returns:
- Type:
-
Promise.<UserDTO>
A promise that resolves with the authenticated user as a UserDTO instance, or null if authentication fails.