# 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._tokens_dir` uses.

## Signature

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

---

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