Skip to main content

Fraud Telemetry


Import the fraudCollector function from your project:

import { fraudCollector } from "autohost-sdk";

Create an object containing the user's unique identifier (userID), reservation identifier (reservationID), and authentication token (token):

const userProfile = {
userID: "your-user-id",
reservationID: "your-reservation-id",
token: "your-token",

Replace your-user-id, your-reservation-id, and your-token with the actual user profile data you want to use in your application.

Call the fraudCollector function with the UserProfile object:

.then(() => {
console.log("Fraud detection data sent successfully");
.catch((error) => {
console.error("Error sending fraud detection data:", error);