> ## 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] [Embedding Guide](https://docs.usechar.com/guides/embedding-agent.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.