cURL
curl --request POST \ --url https://api.example.com/auth/signin \ --header 'Content-Type: application/json' \ --data ' { "email": "<string>", "password": "<string>" } '
{ "message": "<string>", "user": { "id": "<string>", "email": "<string>", "role": "<string>" }, "access_token": "<string>", "refresh_token": "<string>", "expires_in": 123 }
Show user properties
curl -X POST https://api.yourapp.com/auth/signin \ -H "Content-Type: application/json" \ -d '{ "email": "[email protected]", "password": "securepassword123" }'
{ "message": "Login successful", "user": { "id": "550e8400-e29b-41d4-a716-446655440000", "email": "[email protected]", "role": "user" }, "access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...", "refresh_token": "8f9a7b6c5d4e3f2a1b0c9d8e7f6a5b4c", "expires_in": 3600 }
Authorization: Bearer {access_token}