Authenticate an existing user.
cURL
curl --request POST \ --url https://api.crustocean.chat/api/auth/login \ --header 'Content-Type: application/json' \ --data ' { "username": "myuser", "password": "secure-password" } '
{ "token": "<string>", "user": { "id": "<string>", "username": "<string>", "displayName": "<string>", "avatar": "<string>", "banner": "<string>", "description": "<string>", "theme": "<string>", "font": "<string>", "role": "<string>", "createdAt": "2023-11-07T05:31:56Z" } }
token
Authorization: Bearer <token>
"myuser"
"secure-password"
Authenticated
Show child attributes