function · Browser and Node

# verifyCose1

`@toip-tools/cose` · [View source](https://github.com/yourbuddyconner/toip-tools/blob/main/packages/cose/src/sign1.ts#L94)

Import:

```ts
import { verifyCose1 } from "@toip-tools/cose";
```

## Declaration

Signature:

```ts
verifyCose1(bytes: Uint8Array, key: KeyLookup, opts?: VerifyOptions): Promise<VerifyResult>;
```

### Parameters

**`bytes` (required)**

`Uint8Array<ArrayBufferLike>`

**`key` (required)**

`KeyLookup`

**`opts` (optional)**

`VerifyOptions`

Default: `{}`

**Fields of `opts`**

**`allowedAlgs` (optional)**

`CoseAlg[] | undefined`

Default: all five algorithms.

**`webauthnOrigins` (optional)**

`string[] | undefined`

Origins a -65600 signature may come from. Required for -65600.

**`externalAad` (optional)**

`Uint8Array<ArrayBufferLike> | undefined`

### Returns

`Promise<VerifyResult>`

[Usage guide](https://toip.tools/toolkit/cose/#usage) · [Error handling](https://toip.tools/toolkit/cose/#errors) · [All exports](https://toip.tools/toolkit/cose/api/)

---

This is the Markdown version of https://toip.tools/toolkit/cose/api/verifyCose1/. An index of the documentation for AI assistants is at https://toip.tools/llms.txt.
