Frontend Device Intelligence package for GDS One Login
npm install @govuk-one-login/frontend-device-intelligence
This package enables GOV UK LOGIN frontend Node.js applications to use fingerprinting for analysis.
Explore the docs »
Report Bug
·
Request Feature
The GDS One Login Device Intelligence node package is a shared, reusable nunjuck component created to facilitate the integration of fingerprinting for analysis.
The purpose of this package is to make it as easy as possible for the various pods that make up the One Login journey to collect data in identifying a unique visitor correctly.
The package is owned by the DI Frontend Capability team, part of the development of this package involves ongoing discovery with the pods responsible for maintaining the frontend repositories that make up the One Login journey. As more information is collated, the package and documentation will be updated. As such, it is considered a WIP and the pods will be notified when a stable release is ready.
Top level of the monorepo:
```
npm install
npm run build
Or Add to your project using npm i @govuk-one-login/frontend-device-intelligence
To test the Device Intelligence package in the One Login Frontend monorepo, follow these steps:
`
- Update the rollup.config.js file to support 'iife' format for browsers.
`
{
file: "build/iife/index.js",
format: "iife",
name: "ThumbmarkJS"
}
``
See monorepo instructions for building, testing, and publishing packages.