From 2a75ba9724215af47e690ebde8820617d5173dca Mon Sep 17 00:00:00 2001 From: Keysat Date: Wed, 17 Jun 2026 15:24:55 -0500 Subject: [PATCH] Use the options-object validate form in the README example --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index caec372..152e8dd 100644 --- a/README.md +++ b/README.md @@ -34,7 +34,9 @@ That's the whole integration. Embed your public key as a string at build time (e import { Client } from '@keysat/licensing-client' const client = new Client('https://license.example.com') -const result = await client.validate(keyFromUser, 'my-product', machineFingerprint) +// Current form: pass an options object. The positional form +// `validate(key, productSlug, fingerprint)` still works for backwards compatibility. +const result = await client.validate(keyFromUser, { productSlug: 'my-product', fingerprint: machineFingerprint }) if (!result.ok) { console.error('rejected:', result.reason) process.exit(1)