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

# Logto

> Configure Logto tokens for Char publishable-key embeds

Use Logto tokens with Char.

## 1) Configure Logto in Char

Add issuer/domain and allowed audience settings.

## 2) Read token from Logto SDK

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

## 3) Connect

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

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