REST API
cURL
curl --request POST \ --url http://localhost:3002/api/v1/auth/login \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "email": "[email protected]", "password": "your_password" } '
{ "success": true, "data": { "access_token": "<string>", "refresh_token": "<string>", "expires_in": 3600, "user": { "id": "user_123", "email": "[email protected]", "name": "John Doe", "role": "cashier" } } }
Authenticate user dengan email dan password
JWT Bearer token authentication
"[email protected]"
"your_password"
Login successful
true
Show child attributes
Was this page helpful?