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.