> This page is for SDK, version Legacy.
> For other versions, use one of these documentation indexes:
> - Current (default): https://buildwithfern.com/learn/sdks/current/llms.txt
> - Legacy: https://buildwithfern.com/learn/sdks/legacy/llms.txt

> For clean Markdown content of this page, append .md to this URL. For the complete documentation index, see https://buildwithfern.com/learn/llms.txt.

## 1.25.1

**`(fix):`** 修复 OAuth 和 InferredAuth 令牌刷新在每个请求上工作。之前，令牌在客户端初始化期间获取一次并静态存储在请求头中，当长时间运行的客户端实例的令牌过期时导致身份验证失败。现在通过回调在每个请求上调用身份验证提供者的 getToken()/getAuthHeaders() 方法，在需要时正确刷新令牌。