# signing

**Kind:** Function

**Source:** [`src/utils/jwt/jws.ts`](https://github.com/honojs/hono/blob/main/src/utils/jwt/jws.ts#L29)

**Part of:** [Utils](subsystem-src-utils)

## Signature

```ts
async function signing(privateKey: SignatureKey, alg: SignatureAlgorithm, data: BufferSource): Promise<ArrayBuffer>
```

## Parameters

| Name | Type |
|---|---|
| `privateKey` | `SignatureKey` |
| `alg` | `SignatureAlgorithm` |
| `data` | `BufferSource` |

**Returns:** `Promise<ArrayBuffer>`

## Used by

1 reference from 1 file. Each is a place in this repository where the symbol is actually used — go read one rather than trusting an example.

### Imported by (1)

- `TokenHeader` — `src/utils/jwt/jwt.ts`:38
