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

# Okta

> Configure Okta ID tokens for Char publishable-key embeds

Use Okta to issue user ID tokens, then pass them to Char with your publishable key.

## 1) Configure Okta in Char

In Char dashboard, set:

* Provider type: `okta`
* Domain/issuer values for your Okta org
* Allowed audiences used by your app

## 2) Read token from Okta SDK

```ts theme={null}
const idToken = authState?.idToken?.idToken;
```

## 3) Connect agent

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

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