Authentication

POST /auth/login Public

Sign in and start a session.

Body

email string required
Account email.Example me@example.com
password string required
Account password.
curl
curl -X POST "https://freehire.dev/api/v1/auth/login" \
  -H 'Content-Type: application/json' \
  -c cookies.txt \
  -d '{"email":"me@example.com","password":"hunter2hunter2"}'
json — response
{ "data": { "id": 1, "email": "me@example.com", "role": "user" } }