> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tappify.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# testJwks

> Returns the public key set that verifies the tokens signTestToken signs.

```ts theme={null}
function testJwks(): Promise<JSONWebKeySet>;
```

Returns the public key set that verifies the tokens `signTestToken` signs.

## Returns

`Promise`\<`JSONWebKeySet`>

## Remarks

The pair is generated once per process and cached, so every call in a suite
returns the same set. Pass it as `jwks` to `createTappifyHandler` when a test
drives the handler itself; `createTestClient` does that for you.

## Example

```ts theme={null}
import { createTappifyHandler } from '@tappify/extension-sdk/server';
import { testJwks } from '@tappify/extension-sdk/testing';

async function buildHandler() {
  return createTappifyHandler({ extensionId: 'starter', jwks: await testJwks() });
}
```
