> ## 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.

# EnterpriseManagedAuth

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

An auth provider that acquires a token asynchronously and injects it as a
request header per request. [ClientCredentials](/api/client/classes/ClientCredentials), [JwtBearerAuth](/api/client/classes/JwtBearerAuth),
and EnterpriseManagedAuth all implement it. The transport recognizes
these by their `kind` discriminant and injects `getHeaders()` on every
request via a custom fetch wrapper (unlike static `BearerAuth`, whose header
never changes, or interactive `OAuth`, which the SDK transport drives itself).

## Implements

* [`AsyncHeaderAuth`](/api/client/interfaces/AsyncHeaderAuth)

## Constructors

### Constructor

```ts theme={null}
new EnterpriseManagedAuth(options): EnterpriseManagedAuth;
```

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

#### Parameters

##### options

[`EnterpriseManagedOptions`](/api/client/interfaces/EnterpriseManagedOptions)

#### Returns

`EnterpriseManagedAuth`

## Properties

### kind

```ts theme={null}
readonly kind: "enterprise_managed";
```

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

#### Implementation of

[`AsyncHeaderAuth`](/api/client/interfaces/AsyncHeaderAuth).[`kind`](/api/client/interfaces/AsyncHeaderAuth#kind)

## Methods

### getHeaders()

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

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

#### Returns

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

#### Implementation of

[`AsyncHeaderAuth`](/api/client/interfaces/AsyncHeaderAuth).[`getHeaders`](/api/client/interfaces/AsyncHeaderAuth#getheaders)
