# decode_jwt_claims

> **Function** in `langchain_openai`

📖 [View in docs](https://reference.langchain.com/python/langchain-openai/chatgpt_oauth/decode_jwt_claims)

Decode a JWT's payload without signature verification.

!!! danger
    This is for *local claim extraction only*. Never use the returned
    claims for security or authorization decisions.

## Signature

```python
decode_jwt_claims(
    token: str,
) -> dict[str, Any]
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `token` | `str` | Yes | A JWT (`header.payload.signature`). |

## Returns

`dict[str, Any]`

Decoded payload as a dict. Returns an empty dict if the token is

---

[View source on GitHub](https://github.com/langchain-ai/langchain/blob/46ca9e9477d20d63db1734c426615d2be6e01928/libs/partners/openai/langchain_openai/chatgpt_oauth.py#L151)