auth

Passkey Signup Finish

Completes a passkey-only signup: verifies the attestation against the handle from beginPasskeySignup, then in one transaction creates the person (no email, no phone), their user account in the workspace, a passkey identity link and the passkey, and signs them in (the session's amr is ["passkey"]). The new person can sign in and join other open workspaces, but creating a workspace or sending invites answers 403 verified_email_required until they verify an email. Refusals: 400 passkey_failed (stale, reused or foreign handle; bad attestation, origin or relying party; no user verification; a passkey already registered), plus begin's workspace refusals, re-checked here (registration_rejected, wrong_auth_scheme, passkey_signup_unavailable, 429 passkey_signup_limit_reached).

post/auth/passkey/signup/finish

Request

  • Base URL: https://api.instruxi.dev/api/v1/enforcer
  • URL: https://api.instruxi.dev/api/v1/enforcer/auth/passkey/signup/finish
  • Auth: none declared

Request body

credentialobject

Credential is the raw WebAuthn attestation response (navigator.credentials.create()'s PublicKeyCredential, JSON-encoded).

handlestring

Handle is the opaque handle signup/begin returned, echoed unchanged.

Response

OK

successboolean

Example response

{
  "success": true
}

Changes

No recorded changes to this operation across all 1 revision of this API.