application/jsonadmin role, checks block/active status, then returns access and refresh tokens.email, password, device_id, device_name, os_version, lat, lng200 - returns access_token and refresh_token401 - invalid credentials or blocked/inactive account{
"device_id": "device_a1b2c3d4e5",
"device_name": "MacBook Pro",
"email": "admin@hastaai.in",
"lat": 28.6139,
"lng": 77.209,
"os_version": "macOS 14",
"password": "Admin@1234"
}curl --location '/api/v1/admin/auth/login' \
--header 'Content-Type: application/json' \
--data-raw '{
"device_id": "device_a1b2c3d4e5",
"device_name": "MacBook Pro",
"email": "admin@hastaai.in",
"lat": 28.6139,
"lng": 77.209,
"os_version": "macOS 14",
"password": "Admin@1234"
}'{
"success": true,
"message": "Login successful",
"data": {
"access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6ImFkbWluQGhhc3RhYWkuaW4iLCJyb2xlIjoiYWRtaW4iLCJ0eXBlIjoiYWRtaW5fYXV0aF90b2tlbiIsImV4cCI6MTc0Njk2NTQwMH0.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c",
"refresh_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6ImFkbWluQGhhc3RhYWkuaW4iLCJyb2xlIjoiYWRtaW4iLCJ0eXBlIjoiYWRtaW5fcmVmcmVzaF90b2tlbiIsImV4cCI6MTc1MzY1NzgwMH0.abc123def456ghi789"
}
}