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

# AWS Cognito

> Configure Cognito ID tokens for Char publishable-key embeds

Use Cognito User Pool ID tokens with Char.

## 1) Configure Cognito in Char

Set issuer/domain details and allowed audiences.

## 2) Read token from Cognito session

```ts theme={null}
const idToken = session.tokens?.idToken?.toString();
```

## 3) Connect

```ts theme={null}
agent.connect({
  publishableKey: "pk_live_...",
  idToken,
});
```

<Card title="Identity Providers Overview" icon="shield" href="/identity-providers/index" />
