Skip to content
POST /auth/passkey/authentication/verify

Unauthenticated. Consumes the challenge stored under handle, checks the binding cookie, resolves the credential to its owner, verifies the assertion with requireUserVerification: true, and mints a full session — no TOTP step, because a user-verified assertion is already two factors, the same reasoning that lets a SAML/OIDC login skip MFA.

Send with credentials: 'include' so the binding cookie set by authentication/options travels with the request, and so the session cookie in the response is stored.

The response carries no user — read /user/me afterwards.

Sign-count policy: a device-bound credential whose counter fails to advance is rejected and audited as a suspected clone. Synced (multiDevice) credentials are exempt, because their devices legitimately disagree about the counter.

Request Body

responseobject
required·

The PublicKeyCredential returned by navigator.credentials.get(), JSON-serialized (base64url). Extra fields the browser adds are accepted and ignored.

responseobject
required
4 properties
authenticatorDatastring

base64url. Max 64 KB.

clientDataJSONstring

base64url. Max 64 KB.

signaturestring

base64url. Max 64 KB.

userHandlestring

base64url. Max 64 KB. Ignored — the credential ID resolves the user.

idstring

base64url credential ID. Max 64 KB.

rawIdstring

base64url credential ID. Max 64 KB.

typestring

Always public-key. Max 64 characters.

Example: public-key
handlestring

The handle returned by authentication/options.

Response Body

successboolean
Example: true

Errors

StatusDescription
400Unknown body keys, a body that is not JSON, or a base64url field over 64 KB.
401One generic failure for every cause — unknown or revoked credential, deactivated user, expired or already-used challenge, missing or mismatched binding cookie, wrong origin or rpId, user verification absent, bad signature, counter regression. Deliberately indistinguishable so the endpoint stays enumeration-safe.
403The organization enforces SSO (non-staff). Returned only after the signature has verified, so only someone who genuinely holds the passkey learns this.
404Passkeys are not enabled for this environment.
429More than 20 failed attempts from this IP in 15 minutes. A successful sign-in clears the budget.
curl -X POST 'https://api.truto.one/auth/passkey/authentication/verify' \
  -H 'Authorization: Bearer <your_api_token>' \
  -H 'Content-Type: application/json' \
  -d '{
  "response": {},
  "handle": "your_handle"
}'
const body = {
  "response": {},
  "handle": "your_handle"
};

const response = await fetch('https://api.truto.one/auth/passkey/authentication/verify', {
  method: 'POST',
  headers: {
    'Authorization': 'Bearer <your_api_token>',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify(body),
});

const data = await response.json();
console.log(data);
import requests

url = "https://api.truto.one/auth/passkey/authentication/verify"
headers = {
    "Authorization": "Bearer <your_api_token>",
    "Content-Type": "application/json",
}
params = {
}
payload = {
    "response": {},
    "handle": "your_handle"
}

response = requests.post(url, headers=headers, params=params, json=payload)
print(response.json())