# AuthConfirmScreen

> **Class** in `deepagents_code`

📖 [View in docs](https://reference.langchain.com/python/deepagents-code/tui/widgets/auth/AuthConfirmScreen)

Confirm before launching an authentication flow for a model.

A provider-agnostic gate shown when a selected model needs credentials
that aren't detected, and starting the auth flow is disruptive enough
that the user should opt in first (e.g. an OAuth flow that launches a
browser and a multi-minute loopback wait). The caller supplies all copy
so the screen carries no provider assumptions; currently only the
`openai_codex` model-switcher path uses it.

Dismissal values:

- `True`: proceed to the auth flow.
- `False`: go back without authenticating (also the outcome of Esc).

## Signature

```python
AuthConfirmScreen(
    self,
    *,
    title: str,
    body: str | Content,
    help_text: str = 'Enter to continue, Esc to go back',
)
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `title` | `str` | Yes | Heading shown at the top of the dialog. |
| `body` | `str \| Content` | Yes | Explanatory copy. Pass a `Content` for inline styling, or a plain string for unstyled text. |
| `help_text` | `str` | No | Key-hint line shown at the bottom. (default: `'Enter to continue, Esc to go back'`) |

## Extends

- `ModalScreen[bool]`

## Constructors

```python
__init__(
    self,
    *,
    title: str,
    body: str | Content,
    help_text: str = 'Enter to continue, Esc to go back',
) -> None
```

| Name | Type |
|------|------|
| `title` | `str` |
| `body` | `str \| Content` |
| `help_text` | `str` |


## Properties

- `BINDINGS`
- `CSS`

## Methods

- [`compose()`](https://reference.langchain.com/python/deepagents-code/tui/widgets/auth/AuthConfirmScreen/compose)
- [`on_mount()`](https://reference.langchain.com/python/deepagents-code/tui/widgets/auth/AuthConfirmScreen/on_mount)
- [`action_confirm()`](https://reference.langchain.com/python/deepagents-code/tui/widgets/auth/AuthConfirmScreen/action_confirm)
- [`action_cancel()`](https://reference.langchain.com/python/deepagents-code/tui/widgets/auth/AuthConfirmScreen/action_cancel)

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/e14e0adcbe78565ed3650e7f24b2a775d5437d25/libs/code/deepagents_code/tui/widgets/auth.py#L327)