Start passwordless passkey sign-in
/auth/passkey/authentication/options
Unauthenticated. Issues the PublicKeyCredentialRequestOptionsJSON for navigator.credentials.get() — usernameless, so allowCredentials is always empty and the endpoint reveals nothing about which accounts exist.
The challenge is parked under the returned handle for 5 minutes and the browser is pinned with an httpOnly __Host-truto_sso_session_state cookie; both are required by authentication/verify, so the client must send the request with credentials: 'include'. The browser-side ceremony timeout is 60 s, well inside the 5-minute server window; a failed verify needs a fresh call here.
Guarded by Turnstile and a per-IP budget of 30 calls per 60 seconds.
Request Body
Cloudflare Turnstile token from the sign-in page.
Response Body
A bare PublicKeyCredentialRequestOptionsJSON — pass it straight to navigator.credentials.get({ publicKey }). Note rpId is flat here, unlike the nested rp object on registration options.
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.
base64url challenge. Single-use, stored server-side for 5 minutes under handle.
qsNjZMVirtbhRzdVbqWzyBiP224DB-Bu0X3_JqJJTNQThe environment's APP_URL host.
app.truto.one60000requiredrequired
Opaque key the challenge is stored under. Echo it on authentication/verify.
Errors
| Status | Description |
|---|---|
400 | Missing or invalid cf_token, unknown body keys, or a body that is not JSON. |
404 | Passkeys are not enabled for this environment. |
429 | More than 30 calls from this IP in 60 seconds. |
curl -X POST 'https://api.truto.one/auth/passkey/authentication/options' \
-H 'Authorization: Bearer <your_api_token>' \
-H 'Content-Type: application/json' \
-d '{
"cf_token": "your_cf_token"
}'const body = {
"cf_token": "your_cf_token"
};
const response = await fetch('https://api.truto.one/auth/passkey/authentication/options', {
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/options"
headers = {
"Authorization": "Bearer <your_api_token>",
"Content-Type": "application/json",
}
params = {
}
payload = {
"cf_token": "your_cf_token"
}
response = requests.post(url, headers=headers, params=params, json=payload)
print(response.json())