Skip to content
POST /auth/passkey/step-up/options

Issues the PublicKeyCredentialRequestOptionsJSON for answering a step-up prompt (step_up_factors includes passkey) with navigator.credentials.get(). Unlike sign-in, allowCredentials names the signed-in user's passkeys, and userVerification is required.

The challenge is stored server-side against the user for 5 minutes and is single-use: it is spent when a passkey proof carrying it is checked, whatever the verdict. A new call replaces it. Retry the gated request with the assertion as its passkey field. The credential must belong to the signed-in user.

At most ten calls per minute per user; beyond that the call answers 429 with a Retry-After header in seconds.

Session only. An API token or tenant token is rejected with 403, and so is a session that is impersonating another user.

Response Body

optionsobject
required·

A bare PublicKeyCredentialRequestOptionsJSON — pass it straight to navigator.credentials.get({ publicKey }). Note rpId is flat here, unlike the nested rp object on registration options.

allowCredentialsobject[]

Always empty — sign-in is usernameless, so the browser offers whichever discoverable credential it holds for this rpId. Naming credentials here would leak which accounts exist.

challengestring

base64url challenge. Single-use, stored server-side for 5 minutes under handle.

Example: qsNjZMVirtbhRzdVbqWzyBiP224DB-Bu0X3_JqJJTNQ
rpIdstring

The environment's APP_URL host.

Example: app.truto.one
timeoutnumber
Example: 60000
userVerificationstring
Example: required
Possible values:
required

Errors

StatusDescription
400The account is not asked for a passkey (it has none, or its organization enforces SSO).
401Not signed in.
403Not a browser session, or the session is impersonating.
404Passkeys are not enabled for this environment.
429Ten options calls in the last minute.
curl -X POST 'https://api.truto.one/auth/passkey/step-up/options' \
  -H 'Authorization: Bearer <your_api_token>' \
  -H 'Content-Type: application/json'
const response = await fetch('https://api.truto.one/auth/passkey/step-up/options', {
  method: 'POST',
  headers: {
    'Authorization': 'Bearer <your_api_token>',
    'Content-Type': 'application/json',
  },
});

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

url = "https://api.truto.one/auth/passkey/step-up/options"
headers = {
    "Authorization": "Bearer <your_api_token>",
    "Content-Type": "application/json",
}
params = {
}

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