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

# ClientCredentialsTokens

> Tokens from oauth2_client_credentials , kept until shortly before they lapse.

Tokens from `oauth2_client_credentials`, kept until shortly before they lapse.

```csharp
public sealed class ClientCredentialsTokens : ITokenStore
```

**Implements:** `ITokenStore`

## Constructors

```csharp
public ClientCredentialsTokens(HttpMessageHandler handler, ConnectorManifest manifest, (string? Id, string? Secret) client, IReadOnlyDictionary<string, string?>? settings = null, Uri? baseAddress = null)
```

Tokens from `oauth2_client_credentials`, kept until shortly before they lapse.

### Parameters

**handler** `HttpMessageHandler` *required*

What sends the request.

**manifest** `ConnectorManifest` *required*

Whose `token_url` applies.

**client** `(string Id, string Secret)` *required*

The OAuth client's id and secret.

**settings** `IReadOnlyDictionary\<string, string\>`

**baseAddress** `Uri`

## Methods

### AccessTokenAsync()

```csharp
public ValueTask<string> AccessTokenAsync(CancellationToken cancellationToken)
```

Gets the current access token.

#### Parameters

**cancellationToken** `CancellationToken` *required*

#### Returns

`ValueTask<string>`


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.