Signet

Trusted Devices

Remember the browsers an account proved itself on, and step up on any other. About Trusted Devices

Switch: trust a browser after your second factor, then act on allow, step_up or enroll at each login.

The calls

# at login: is this browser trusted?
curl -X POST https://signetsentry.com/v1/accounts/user-42/devices/check \
  -H "Authorization: Bearer $SIGNET_SECRET_KEY" -H "Content-Type: application/json" -d '{"session_id":"s_..."}'
# -> { "trusted": false, "recommendation": "step_up", "reason": "new_device", "device": null, "trusted_device_count": 1, "strength": null }

# after the second factor passes: trust it
curl -X POST https://signetsentry.com/v1/accounts/user-42/devices \
  -H "Authorization: Bearer $SIGNET_SECRET_KEY" -H "Content-Type: application/json" -d '{"session_id":"s_...","label":"Home laptop"}'

{id} is your own account ID, the value you send as account_id elsewhere.

CallPurpose
POST /v1/accounts/{id}/devices/checkIs the browser of session_id trusted?
POST /v1/accounts/{id}/devicesTrust it; label is optional. 201 with the device. Trusting it again returns the same device.
GET /v1/accounts/{id}/devicesThe account’s devices: label, binding, first and last seen, revoked_at.
DELETE /v1/accounts/{id}/devices/{device_id}Revoke one.
DELETE /v1/accounts/{id}/devicesRevoke all, after a password reset or suspected takeover.

What to do

recommendationreasonDo this
allowtrusted_deviceSkip the second factor.
step_upnew_device, revoked_deviceAsk for a second factor, then trust the browser.
enrollno_trusted_devicesFirst time: verify the person, then trust the browser.

In every assessment

Assessments with account_id carry account.trusted_device_count, account.device_trusted, account.new_device and account.device_revoked. The account.new_device webhook carries the account, session, visitor, IP and country.

Reason codeMeaning
ACCOUNT_TRUSTED_DEVICETrusted earlier. Lowers the risk.
ACCOUNT_NEW_DEVICENot trusted. Raises the risk on login, password reset, details change and payment.
ACCOUNT_REVOKED_DEVICERevoked. Raises the risk sharply.
ACCOUNT_DECOY_USEDOne of your decoy accounts. Denied.

How a device was recognized

The check answers strength, how firmly the device was recognized: key, passkey (below), token, visitor, or null. Key strength

Passkeys

Ask a returning person for their fingerprint, face or PIN, and know it is the same device. It always shows the browser’s own prompt, after a click.

Turn it on

Off by default. List your pages’ exact https origins on a live site key (wildcards do not count), then name the domain they share.

curl -X PUT https://signetsentry.com/v1/passkeys \
  -H "Authorization: Bearer $SIGNET_SECRET_KEY" -H "Content-Type: application/json" -d '{"rp_id":"example.com"}'
# -> { "enabled": true, "rp_id": "example.com", "origins": ["https://www.example.com"] }

DELETE /v1/passkeys turns it off. Passkeys belong to the domain: with another one, people make new ones.

In the page

<script src="https://signetsentry.com/v1/tag-pk.js"></script>   <!-- only where you offer it; the tag never loads it -->
<script>
button.onclick = function () {
  Signet.passkey.create(options).then(function (r) {     // or Signet.passkey.get(options)
    if (r.credential) sendToYourServer(r.credential);    // else r.error: unsupported, no_gesture, busy, invalid_options, cancelled, exists, failed
  });
};
</script>

options is what your server got from Signet, unchanged. The script sends nothing. Signet.passkey.available() says whether this device can ask.

On your server

CallPurpose
POST /v1/accounts/{id}/passkeys/optionssession_id, purpose (create or get), user_name (shown in the prompt, not stored). Good once, for five minutes, for that session and account.
POST /v1/accounts/{id}/passkeysStore a new one: session_id, credential, optional label. Trusts the browser too, so call it after the person has proved who they are.
POST /v1/accounts/{id}/passkeys/checkA returning person: session_id, credential. Read verified, then binding.
GET /v1/accounts/{id}/passkeysThe account’s passkeys.
DELETE /v1/accounts/{id}/passkeys[/{passkey_id}]Revoke one or all. Revoking a device revokes the passkeys made on it.

Ask when the devices check answers step_up and passkeys is above 0, then check the device again.

This device, or this person

bindingWhat it provesDo this
keyThis device. The devices check answers strength: "passkey", and visitor.binding is key.Skip the second factor.
passkey_syncedThe person. Their platform may copy it to their other devices, so it never counts as this device.Take it as the second factor, then trust the browser.

Signet asks for one that stays on the device; some platforms make a synced one anyway.

When it is refused

reasonMeaning
challenge_used, challenge_expired, challenge_invalidThe options were used, too old, or made for another session, account or purpose.
origin_mismatch, rp_id_mismatch, cross_originNot one of your listed pages, another domain, or inside another site’s frame.
user_not_verified, user_not_presentNo fingerprint, face or PIN.
counter_regressionA copy of the passkey may be in use. Revoke it and ask for another factor.
other_deviceA phone answered for this browser.
unknown_credential, revokedNot a passkey of this account, or no longer.
signature_invalid, backup_changed, wrong_type, unsupported, malformedNot a genuine answer.

A new passkey is refused with 400 passkey_<reason>. Other errors: passkeys_off, no_passkeys, too_many_passkeys (20), passkey_exists, session_expired. Test keys: test_allow (this device), test_review (synced) and test_deny (refused) as session_id.

Removing one

A passkey lives in the person’s device or platform account, and they remove it there. Signet.reset() and Signet.consent(false) revoke Signet’s record of the one used in that session, so do not call them at logout.

Decoy accounts

A username nobody has. POST /v1/decoys with { "kind": "account", "value": "backup-admin" }; an assessment with that account_id or email is then denied with ACCOUNT_DECOY_USED. Manage them with the same calls as decoy codes.

Limits and errors

A device Signet cannot tell apart from a look-alike is refused with device_not_distinguishable. First-party mode or the durable token helps. POST /v1/privacy/erase with account_id deletes the devices. Also the common errors.