Generate Registration Options
string
required
User’s email address (will be normalized)
string
Display name for the user (defaults to email if not provided)
string
required
Human-readable name of the relying party (your application)
string
required
Relying party identifier (usually your domain)
string
required
Origin URL for credential binding
number
Timeout in milliseconds (default: 60000)
string
Attestation conveyance preference: “none”, “indirect”, “direct” (default: “none”)
string
Resident key requirement: “required”, “preferred”, “discouraged” (default: “required”)
string
User verification requirement: “required”, “preferred”, “discouraged” (default: “preferred”)
boolean
Whether user presence is required (default: false)
array
Array of COSE algorithm identifiers (default: [-8, -7, -257])
string
“OK” or “INVALID_OPTIONS_ERROR”
string
Unique identifier for these options (used in subsequent registration call)
object
WebAuthn PublicKeyCredentialCreationOptions to pass to navigator.credentials.create()
Sign Up with Credential
string
required
ID from the options generation response
object
required
PublicKeyCredential object from navigator.credentials.create()
string
“OK”, “INVALID_OPTIONS_ERROR”, “EMAIL_ALREADY_EXISTS_ERROR”, “INVALID_AUTHENTICATOR_ERROR”, “OPTIONS_NOT_FOUND_ERROR”, or “INVALID_CREDENTIALS_ERROR”
object
Created user object with login methods
string
The credential ID that was registered
string
The recipe user ID for this WebAuthn login method
Register Credential for Existing User
string
required
The recipe user ID to add the credential to
string
required
ID from the options generation response
object
required
PublicKeyCredential object from navigator.credentials.create()
string
“OK”, “INVALID_OPTIONS_ERROR”, “INVALID_AUTHENTICATOR_ERROR”, “INVALID_CREDENTIALS_ERROR”, “OPTIONS_NOT_FOUND_ERROR”, “CREDENTIAL_ALREADY_EXISTS_ERROR”, or “UNKNOWN_USER_ID_ERROR”
string
The credential ID that was registered
string
The recipe user ID
string
User’s email address