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

# ClientCredentialsOptions

```ts theme={null}
type ClientCredentialsOptions = 
  | ClientSecretCredentialsOptions
  | PrivateKeyJwtCredentialsOptions;
```

Defined in: [client/auth.ts:571](https://github.com/PrefectHQ/fastmcp-ts/blob/8976c37f79efa6b87809b884f29a1f235a8c4ad1/src/client/auth.ts#L571)

Configuration for [ClientCredentials](/api/client/classes/ClientCredentials). A discriminated union: supply
either a `clientSecret` (with an optional `authMethod`) or a `privateKey`
(with its `algorithm`) — the two are mutually exclusive and enforced at
compile time.
