Sign in with your own fingerprint or face.
BioLock uses your device’s sign-in prompt. The website verifies a signed response against a public key. Fingerprint and face data stay with the device.


How it works
Enroll a device
From a signed-in device, create a one-time invitation and open it on the device you want to enroll.
Create a credential
The authenticator creates a key pair. The website registers only the public key.
Verify on the device
Use the prompt your browser and operating system provide to authorize sign-in.
Remove a lost device
Revoke its enrolled credential from an account you still control.
Research
Read what a credential proves, how local verification and backups work, and what enrollment and recovery require.
Read the research
Add it to a site in five steps
The source has two modules and no dependencies. The server module uses Web Crypto.
import { registrationOptions, verifyRegistration, signInOptions, verifySignIn,
makeDeviceInvite, readDeviceInvite } from './server.js';
// 1. On a signed-in device: make a one-time "Add a device" link.
const token = await makeDeviceInvite({ secret: env.INVITE_SECRET, accountId });
// 2. On the new device: read the link and send enroll options.
const { accountId } = await readDeviceInvite({ secret: env.INVITE_SECRET, token });
const options = registrationOptions({ rpId: 'example.com', rpName: 'Example', userId, userName });
// 3. Check it and store the record for the account.
const record = await verifyRegistration({ credential, expectedChallenge,
expectedOrigin: 'https://example.com', rpId: 'example.com' });
// 4. Sign in with the IDs this device enrolled.
const opts = signInOptions({ rpId: 'example.com', deviceCredentialIds });
// 5. Check it and save the new counter.
const { counter } = await verifySignIn({ credential, stored: record, expectedChallenge,
expectedOrigin: 'https://example.com', rpId: 'example.com' });
In the browser:
import { hasBuiltInReader, enrollThisDevice, signIn, enrolledOnThisDevice } from './client.js';
const enrolled = await enrollThisDevice(optionsFromServer); // touch your fingerprint
const login = await signIn(signInOptionsFromServer); // straight to the fingerprint