Hierarchy

Constructors

Properties

rpName?: string

Name of relying party. Defaults to "lit"

Methods

  • Parse the WebAuthn registration response to get the WebAuthn credential public key

    Returns

    • WebAuthn credential public key in hex format

    Parameters

    • attResp: RegistrationResponseJSON

      WebAuthn registration response

    Returns string

  • Generate registration options for the browser to pass to a supported authenticator

    Returns

    • Options to pass to the authenticator

    Parameters

    • Optional username: string

      Username to register credential with

    Returns Promise<PublicKeyCredentialCreationOptionsJSON>

  • Mint PKP with verified registration data

    Returns

    • Mint transaction hash

    Parameters

    • options: PublicKeyCredentialCreationOptionsJSON

      Registration options to pass to the authenticator

    Returns Promise<string>

Generated using TypeDoc