What is LBFraud web SDK?

LBFraud web SDK is the piece that allow you to integrate Ironchip LBFraud in your web environment. Using it Ironchip can evaluate if the device and environment that uses the website is secure. To add the SDK to the website you just need to follow the next steps.

JavaScript integration

This setup can be done on a JavaScript file or directly over the HTML in script tags. We recommend using the SDK in JavaScript and always obfuscating it.

import { LBFraudSDK, LBFraudSDKEnvironment } from 'https://lbfraud-web-sdk.s3.eu-west-3.amazonaws.com/release/0.1.1/LBFraud-SDK-Web.modern.js';

Then, with the SDK imported you need to initialize the client. Please ensure that you have the API- Key and the environment where you will work. By default the chosen environment is Production.

You will initialize the client (Choose just one environment):

const client = new LBFraudSDK({
  apiKey: 'api-key',
  environment: LBFraudSDKEnvironment.Development,

Our advice is to obfuscate this code, due to it contains the API-Key.

See full example