'invalid_request']); exit; } // Validasi X-API-KEY if (!isset($_SERVER['HTTP_X_API_KEY']) || $_SERVER['HTTP_X_API_KEY'] !== 'RETRIBUSI-DASHBOARD-KEY') { http_response_code(401); echo json_encode(['error' => 'unauthorized']); exit; } // Logic authentication // ... kode auth yang sudah ada ... // Response success echo json_encode([ 'token' => 'Bearer xxxxx', 'user' => [ 'username' => 'admin', 'role' => 'admin', 'locations' => ['kerkof_01'] ] ]); */