# 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/7794b61a6e76230e8c7a49bdce808b3728305914/libs/code/deepagents_code/integrations/openai_codex.py#L193)