Quickstart
Install the client and generate your first fingerprint.
Install
npm i openclientidGenerate 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
- Client Components for the full built-in matrix and custom component API.
- Rust Server for endpoint and deployment details.