Create a new session for a user

POST /Api/Auth/Login

Body

Responses

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 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"
}