Logs user into the system

Query parameters

usernamestringOptional
The username for login
passwordstringOptional
The password for login

Response

Successful login
tokenstring or null
Authentication token
expiresIninteger or null
Token expiration time in seconds