ALPHA

Work in progress. Breaking changes may happen without notice.

Quickstart

Install the client and generate your first fingerprint.

Install

npm i openclientid

Generate a client fingerprint

import { getFingerprint } from "openclientid";

const result = await getFingerprint({
	hashComposite: true,
});

console.log(result.composite);
console.log(result.compositeHash);

Combine with the Rust server

import { getFingerprintWithServer } from "openclientid";

const combined = await getFingerprintWithServer(
	{
		endpoint: "https://your-server.example.com/fingerprint",
		metadata: {
			userId: "user_123",
		},
	},
	{ hashComposite: true },
);

console.log(combined.combined.combinedCompositeHash);

That endpoint should point to the OpenClientID Rust server running in API mode.

Next steps