login
Logs in a user with the provided username and password. This function constructs a Login.Request and then calls the overloaded login function.
Return
A Login.Response containing the JWT token and user details.
Parameters
username
The username of the user.
password
The password of the user.
Logs in a user with the provided Login.Request object. On successful login, the received JWT token is stored for subsequent authenticated requests.
Return
A Login.Response containing the JWT token and user details.
Parameters
request
The Login.Request object containing username and password.