fixed

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 .