4.22.15 • Published 2 days ago

@rebilly/risk-data-collector v4.22.15

Weekly downloads
160
License
MIT
Repository
github
Last release
2 days ago

risk-data-collector

npm version

Collect browser data for risk assessment purposes.

Description

risk-data-collector is a client side microlibrary which collects user data required for the risk assessment component of 3DS v2.

Data collected

  • colorDepth
  • javaEnabled
  • language
  • screenHeight
  • screenWidth
  • timeZoneOffset
  • deviceFingerprintHash
  • kountFraudSessionId (optional)

Usage

risk-data-collector is distributed in two ways:

Via a CDN link

The library becomes available under the RiskDataCollector global namespace and can be used like so:

<html>
  <head>
    <script src="https://cdn.rebilly.com/risk-data-collector/@latest/data-collector.js"></script>
  </head>

  <body>
    <script type="text/javascript">
      (async () => {
        const browserData = await RiskDataCollector.collectData();
        console.log(`browserData is: ${JSON.stringify(browserData)}`);
      })();
    </script>
  </body>
  <html></html>
</html>

Note: You can replace @latest with @<version> (Example @1.0.0). To pin to a specific version.

As an npm package

yarn add @rebilly/risk-data-collector

npm install @rebilly/risk-data-collector

Which can be imported and used like so:

import { collectData } from '@rebilly/risk-data-collector';

(async () => {
  const browserData = await collectData();
  console.log(`browserData is: ${JSON.stringify(browserData)}`);
})();

Kount

risk-data-collector works with Kount to collect kountFraudSessionId.

If you already have an account with Kount, you can use it with risk-data-collector by providing:

  • env - sandbox or production, determines which Kount environment to use (defaults to sandbox)
  • kountAccountId - your Kount account ID
  • (optional) kountSessionId - 32 character session ID, omit to have Kount generate a session ID for you

Example:

import { collectData } from '@rebilly/risk-data-collector';

(async () => {
  const env = 'production';
  const kountAccountId = '123456';
  const browserData = await collectData({ env, kountAccountId });
  console.log(`browserData is: ${JSON.stringify(browserData)}`);
})();
4.22.15

2 days ago

4.22.12

3 days ago

4.22.14

3 days ago

4.22.13

3 days ago

4.22.11

5 days ago

4.22.10

10 days ago

4.22.8

15 days ago

4.22.9

15 days ago

4.22.7

15 days ago

4.22.6

16 days ago

4.22.4

17 days ago

4.22.5

17 days ago

4.22.1

21 days ago

4.22.2

21 days ago

4.22.3

20 days ago

4.22.0

23 days ago

4.21.5

24 days ago

4.21.4

27 days ago

4.21.3

28 days ago

4.21.2

30 days ago

4.21.1

1 month ago

4.21.0

1 month ago

4.18.1

1 month ago

4.18.0

1 month ago

4.17.0

1 month ago

4.20.0

1 month ago

4.19.0

1 month ago

4.16.4

1 month ago

4.16.5

1 month ago

4.16.6

1 month ago

4.16.3

1 month ago

4.16.2

1 month ago

4.16.0

1 month ago

4.16.1

1 month ago

4.15.14

1 month ago

4.15.13

1 month ago

4.15.12

2 months ago

4.15.11

2 months ago

4.15.10

2 months ago

4.15.9

2 months ago

4.15.8

2 months ago

4.15.6

2 months ago

4.15.7

2 months ago

4.15.5

2 months ago

4.15.4

2 months ago

4.15.3

2 months ago

4.15.1

2 months ago

4.15.2

2 months ago

4.15.0

2 months ago

4.14.1

2 months ago

4.14.0

2 months ago

4.12.1

2 months ago

4.13.0

2 months ago

4.12.0

2 months ago

4.11.0

3 months ago

4.10.1

3 months ago

4.10.0

3 months ago

4.9.0

3 months ago

4.8.0

4 months ago

4.7.0

4 months ago

4.6.2

4 months ago

4.6.1

5 months ago

4.6.0

5 months ago

4.5.0

5 months ago

4.5.1

5 months ago

4.4.0

5 months ago

4.3.0

5 months ago

3.9.3

6 months ago

3.9.2

7 months ago

3.9.1

7 months ago

3.9.0

7 months ago

3.7.2

7 months ago

3.9.5

6 months ago

3.9.4

6 months ago

3.4.0

8 months ago

3.2.1

9 months ago

3.2.0

9 months ago

3.8.0

7 months ago

3.6.0

8 months ago

2.13.5

9 months ago

3.0.0

9 months ago

2.13.2

9 months ago

2.13.0

10 months ago

2.13.1

10 months ago

4.0.0

5 months ago

4.2.0

5 months ago

3.3.0

8 months ago

3.1.1

9 months ago

3.1.0

9 months ago

3.7.1

7 months ago

3.7.0

8 months ago

3.5.0

8 months ago

4.1.0

5 months ago

2.11.0

11 months ago

2.10.1

11 months ago

2.12.0

11 months ago

2.10.2

11 months ago

2.10.0

12 months ago

2.7.0

12 months ago

2.6.0

12 months ago

2.9.0

12 months ago

2.8.0

12 months ago

2.5.5

1 year ago

2.5.0

1 year ago

2.4.0

1 year ago

2.5.2

1 year ago

2.5.1

1 year ago

2.5.4

1 year ago

2.5.3

1 year ago

2.3.0

2 years ago

2.2.1

2 years ago

2.2.0

3 years ago

2.1.0

3 years ago

2.0.1

3 years ago

1.3.1

3 years ago

2.0.0

3 years ago

1.3.0

4 years ago

1.2.1

4 years ago

1.2.0

4 years ago

1.1.2

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.0

4 years ago