# is_logged_in

> **Function** in `deepagents_code`

📖 [View in docs](https://reference.langchain.com/python/deepagents-code/integrations/openai_codex/is_logged_in)

Return whether a ChatGPT OAuth token is stored on disk.

## Signature

```python
is_logged_in(
    *,
    store_path: Path | None = None,
) -> bool
```

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/02ed19a42715fe0e9f2059fe8cf4fe6883054f08/libs/code/deepagents_code/integrations/openai_codex.py#L193)