Skip to main content

convert_creation_options

Function convert_creation_options 

Source
fn convert_creation_options(
    options: &CredentialCreateOptions,
    default_rp_id: String,
    origin: String,
) -> Result<(Request, String), WebAuthnEntityError>
Expand description

Create a CTAP2 makeCredential request and clientDataJSON from the WebAuthn credential attestations options received from the server. Generates clientDataJSON from given origin and challenge, and injects the default RP ID if it’s missing.