Navigation

Evaluations

Evaluations are used to determine if an action should be allowed, denied, or if a challenge should be triggered. To evaluate an action, call the evaluate function like so:

const { verdict, reasons, challenge_id } = await Rupt.evaluate({
  action: "login",
  user: "USER_ID",
  fingerprint: ["FINGERPRINT_HASH", "LAST_FINGERPRINT_HASH"], // Use the rupt client sdk method `getHash` to get the fingerprint hashes from the browser
  ip: "IP_ADDRESS",
});