Skip to main content

Generate Sign-In Options

string
required
Relying party identifier (must match registration)
string
required
Human-readable name of the relying party
string
required
Origin URL for credential binding
number
Timeout in milliseconds (default: 60000)
string
User verification requirement: “required”, “preferred”, “discouraged” (default: “preferred”)
boolean
Whether user presence is required (default: false)
string
“OK” or “INVALID_OPTIONS_ERROR”
string
Unique identifier for these options (used in subsequent sign-in call)
object
WebAuthn PublicKeyCredentialRequestOptions to pass to navigator.credentials.get()

Sign In with Credential

string
required
ID from the options generation response
object
required
PublicKeyCredential object from navigator.credentials.get()
string
“OK”, “INVALID_OPTIONS_ERROR”, “INVALID_AUTHENTICATOR_ERROR”, “INVALID_CREDENTIALS_ERROR”, “OPTIONS_NOT_FOUND_ERROR”, “CREDENTIAL_NOT_FOUND_ERROR”, or “UNKNOWN_USER_ID_ERROR”
object
Authenticated user object with login methods
string
The recipe user ID for the authenticated login method