# auth_path

> **Function** in `deepagents_code`

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

Return the resolved path to the credential store (`auth.json`).

Resolved at call time (not import time) so tests can redirect storage by
monkeypatching `deepagents_code.model_config.DEFAULT_STATE_DIR` — same
pattern `mcp_auth.token_store_dir` uses.

## Signature

```python
auth_path() -> Path
```

---

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