> This page is for Developer Documentation.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.benchling.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.benchling.com/_mcp/server.

## Benchling SDK 1.21.2 Release Notes

This is a patch release to fix an edge case where OAuth tokens could fail to be refreshed.

### What’s Changing?

### Fixed

* The logic in `benchling_sdk.auth.client_credentials_oauth2.ClientCredentialsOAuth2` for automatically requesting a new token, if the previous token was at or near its expiry time, could fail in cases where the default time zone had changed since the previous token was acquired. The symptom was that the SDK would not realize a token was no longer valid and would keep trying to use it, causing an authentication error. This has been fixed by always using UTC date/times in the OAuth2 logic.

Version 1.21.2 of the Benchling SDK is now live! Find the SDK in [PyPI](https://pypi.org/project/benchling-sdk/1.21.2) .