WebAuthn Options Generator

Add passkeys to any backend: create WebAuthn registration and login options, verify attestations and assertions; your app only stores the credential.

Free tool: 20 requests per minute.

Result

Press “Run” to see the result.

A stateless passkey server built on SimpleWebAuthn. POST /v1/webauthn/register/options with rp_id (your domain) and user_name returns the options for navigator.credentials.create() (or startRegistration() of @simplewebauthn/browser), the challenge and a challenge_token: an HMAC-signed token that carries the challenge, the RP ID and a 5-minute expiry (timeout_ms, up to 10 minutes), so you do not need a session store. Then POST /register/verify with the browser response, the challenge_token (or your own stored expected_challenge + rp_id) and expected_origin: attestation formats none, packed, TPM, Android Key / SafetyNet, Apple and FIDO U2F are checked and you get credential.id, credential.public_key (COSE, base64url, plus JWK and PEM), counter, transports, the AAGUID with a provider name for well-known passkey managers, user_verified, device_type and backed_up.

To sign in, POST /login/options (optionally with allow_credentials) and POST /login/verify with the response, the token and the stored credential {id, public_key, counter}: the signature, origin, RP ID hash, user presence / verification (require_user_verification) and the signature counter are verified; save new_counter. Algorithms: EdDSA, ES256/384/512, RS256 and PS256 by default [-8, -7, -257].

Nothing is stored on our side: you keep the credentials (one user can have several) and you decide what a successful verification means. Tokens are stateless and valid until they expire: mark them as used if you need strict one-time challenges. The FIDO Metadata Service is not included (its terms forbid redistribution), so authenticator models are not certified-checked.

Use this in your code

curl -X POST "https://apibox.io.vn/v1/webauthn/register/options" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"rp_id":"example.com","rp_name":"Example","user_name":"an@example.vn","user_id":"user-42"}'

API documentation → Get a free API key

FAQ

What does my app have to store?

The credential id, public key, counter and transports of each passkey, linked to the user. Optionally the challenge (instead of the challenge_token) and used tokens.

Does it work with iPhone, Android and Windows Hello passkeys?

Yes. Synced passkeys usually use attestation "none" and keep the counter at 0, which is accepted.

Which origin should I send?

The exact origin of the page that called WebAuthn, e.g. https://example.com (several allowed). The rp_id must be that domain or a parent domain.