WebAuthnP256.verify
Verifies a signature using the Credential's public key and the challenge which was signed.
Imports
Named
import { WebAuthnP256 } from 'ox'Examples
import { WebAuthnP256 } from 'ox'
const credential = await WebAuthnP256.createCredential({
name: 'Example',
})
const { metadata, signature } = await WebAuthnP256.sign({
credentialId: credential.id,
challenge: '0xdeadbeef',
})
const result = await WebAuthnP256.verify({
metadata,
challenge: '0xdeadbeef',
publicKey: credential.publicKey,
signature,
})
trueDefinition
function verify(
options: verify.Options,
): booleanSource: src/core/WebAuthnP256.ts
Parameters
options
- Type:
verify.Options
Options.
Return Type
Whether the signature is valid.
boolean

