Create a new session for a user
application/json
POST
/Api/Auth/Login
cURL (application/json)
curl \
-X POST https://app.lovassy.hu/Api/Auth/Login \
-H "Content-Type: application/json" \
-d '{"email":"hello@example.com","password":"string","remember":true}'
curl \
-X POST https://app.lovassy.hu/Api/Auth/Login \
-H "Content-Type: text/json"
curl \
-X POST https://app.lovassy.hu/Api/Auth/Login \
-H "Content-Type: application/*+json"
Request example
{
"email": "hello@example.com",
"password": "string",
"remember": true
}
Request examples
{
"email": "hello@example.com",
"password": "string",
"remember": true
}
Request examples
{
"email": "hello@example.com",
"password": "string",
"remember": true
}
Response examples (200)
{
"user": {
"id": "string",
"name": "string",
"email": "string",
"emailVerifiedAt": "2024-05-04T09:42:00+00:00",
"realName": "string",
"class": "string"
},
"token": "string",
"refreshToken": "string",
"refreshTokenExpiration": "2024-05-04T09:42:00+00:00"
}