# OAuthCredential

> **Class** in `deepagents_code`

📖 [View in docs](https://reference.langchain.com/python/deepagents-code/auth_store/OAuthCredential)

A persisted OAuth subscription credential.

Stub kept here so the `StoredCredential` discriminated union narrows
correctly today and the OAuth implementation lands as a pure addition.
No code path produces or consumes this shape yet.

## Signature

```python
OAuthCredential()
```

## Extends

- `TypedDict`

## Constructors

```python
__init__(
    type: Literal['oauth'],
    access_token: str,
    refresh_token: str,
    expires_at: str,
)
```

| Name | Type |
|------|------|
| `type` | `Literal['oauth']` |
| `access_token` | `str` |
| `refresh_token` | `str` |
| `expires_at` | `str` |


## Properties

- `type`
- `access_token`
- `refresh_token`
- `expires_at`

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/d1c6946218b4f0f86ab7b02b6bb6af1e4b75cede/libs/code/deepagents_code/auth_store.py#L71)