> ## Documentation Index
> Fetch the complete documentation index at: https://colin-feat-client-cache-mode.mintlify.site/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/8976c37f79efa6b87809b884f29a1f235a8c4ad1/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/8976c37f79efa6b87809b884f29a1f235a8c4ad1/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/8976c37f79efa6b87809b884f29a1f235a8c4ad1/src/client/auth.ts#L491)

#### Returns

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