Tooling
Module SDK
Modules
getWebAuthnValidator

⚠️ Deprecation Notice

ModuleSDK was developed by Rhinestone and is no longer actively supported. For new projects, we recommend using the Rhinestone SDK instead.

Rhinestone SDK Documentation (opens in a new tab)

getWebAuthnValidator

Get the WebAuthn validator module object.

Usage

const module = getWebAuthnValidator({
  webAuthnCredential: {
    pubKeyX: 123...,
    pubKeyY: 123...,
    authenticatorId: "credential-id"
  }
});

Parameters

webAuthnCredential.pubKey

  • Type: PublicKey | Hex | Uint8Array

Either the hex string, a Uint8Array or the public key object, which consists of x, y and an optional prefix.

webAuthnCredential.authenticatorId

  • Type: string

The credential ID of the authenticator.

hook (optional)

The address of the hook to use. This is only required for the Kernel account.

Returns

module

The WebAuthn validator module object.