- Source:
Methods
(static) login(email, password) → {JSON}
- Source:
Parameters:
Name | Type | Description |
---|---|---|
email |
String | The email used by the user to log in. |
password |
String | The password used by the user to log in. |
Returns:
An object with generated JWT token.
- Type
- JSON
(static) register(username, email, password, name) → {JSON}
- Source:
Parameters:
Name | Type | Description |
---|---|---|
username |
String | User's username. |
email |
String | User's email. |
password |
String | User's password. |
name |
String | User's full name. |
Returns:
An object that contains both an error message and a successful registration message.
- Type
- JSON