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

# Firebase Auth

> Configure Firebase ID tokens for Char publishable-key embeds

Use Firebase Authentication ID tokens with Char.

## 1) Configure Firebase in Char

Set issuer and audience settings that match your Firebase project.

## 2) Read token from Firebase user

```ts theme={null}
const idToken = await user.getIdToken();
```

## 3) Connect

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

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