> **Can't find what you're looking for?** Use `search_docs` on the docs MCP server at `https://v3.viem.sh/api/mcp` to find what you need.

# WebAuthn.verify

:::info
`WebAuthn.verify` is a re-export of ox's [`WebAuthn.verify`](https://oxlib.sh/api/WebAuthn/verify). Refer to the ox documentation for the full reference.
:::

Verifies a signature using the Credential's public key and the challenge which was signed.

## Imports

```ts
import { WebAuthn } from 'viem/utils'
```

## Examples

```ts twoslash
// @noErrors
import { WebAuthn } from 'viem/utils'

const credential = await WebAuthn.createCredential({
  name: 'Example'
})

const { metadata, signature } = await WebAuthn.sign({
  credentialId: credential.id,
  challenge: '0xdeadbeef'
})

const result = await WebAuthn.verify({
  // [!code focus]
  metadata, // [!code focus]
  challenge: '0xdeadbeef', // [!code focus]
  publicKey: credential.publicKey, // [!code focus]
  signature // [!code focus]
}) // [!code focus]
// @log: true
```

## Definition

```ts
function verify(
  options: verify.Options,
): boolean
```

## Parameters

### options

* **Type:** `verify.Options`

Options.

## Return Type

Whether the signature is valid.

`boolean`
