> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.nvidia.com/aistore/llms.txt.
> For full documentation content, see https://docs.nvidia.com/aistore/llms-full.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.nvidia.com/aistore/_mcp/server.

# aistore.sdk.authn.token_manager

## Module Contents

### Classes

| Name                                                            | Description                       |
| --------------------------------------------------------------- | --------------------------------- |
| [`TokenManager`](#aistore-sdk-authn-token_manager-TokenManager) | Manages token-related operations. |

### Data

[`logger`](#aistore-sdk-authn-token_manager-logger)

### API

```python
class aistore.sdk.authn.token_manager.TokenManager(
    client: aistore.sdk.request_client.RequestClient
)
```

Manages token-related operations.

This class provides methods to interact with tokens in the AuthN server.
.

**Parameters:**

The RequestClient used to make HTTP requests.

Returns the RequestClient instance used by this TokenManager.

```python
aistore.sdk.authn.token_manager.TokenManager.revoke(
    token: str
) -> None
```

Revokes the specified authentication token.

**Parameters:**

The token to be revoked.

**Raises:**

* `ValueError`: If the token is not provided.
* `AISError`: If the revoke token request fails.

```python
aistore.sdk.authn.token_manager.logger = get_logger(__name__)
```