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

# Auth0

> Configure Auth0 ID tokens for Char publishable-key embeds

Use Auth0-issued ID tokens with Char.

## 1) Configure Auth0 in Char

Set issuer/domain details and allowed audiences for your Auth0 application.

## 2) Get ID token from Auth0 SDK

```ts theme={null}
const idToken = (await getIdTokenClaims())?.__raw;
```

## 3) Connect

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

<Card title="Embedding Guide" icon="code" href="/guides/embedding-agent" />
