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

# BearerAuth

Defined in: [client/auth.ts:483](https://github.com/PrefectHQ/fastmcp-ts/blob/e4b6038f642b529f601463a576229747afebe9a4/src/client/auth.ts#L483)

## Constructors

### Constructor

```ts theme={null}
new BearerAuth(token): BearerAuth;
```

Defined in: [client/auth.ts:486](https://github.com/PrefectHQ/fastmcp-ts/blob/e4b6038f642b529f601463a576229747afebe9a4/src/client/auth.ts#L486)

#### Parameters

##### token

`string`

#### Returns

`BearerAuth`

## Methods

### getHeaders()

```ts theme={null}
getHeaders(): Record<string, string>;
```

Defined in: [client/auth.ts:491](https://github.com/PrefectHQ/fastmcp-ts/blob/e4b6038f642b529f601463a576229747afebe9a4/src/client/auth.ts#L491)

#### Returns

`Record`\<`string`, `string`>
