This commit is contained in:
Ross Scroggs
2025-09-13 14:39:22 -07:00
parent c810e1c8df
commit aaae733452

View File

@@ -11025,7 +11025,7 @@ class Credentials(google.oauth2.credentials.Credentials):
expiry = info.get('token_expiry')
if expiry:
# Convert the raw expiry to datetime
expiry = arrow.Arrow.strptime(expiry, YYYYMMDDTHHMMSSZ_FORMAT)
expiry = arrow.Arrow.strptime(expiry, YYYYMMDDTHHMMSSZ_FORMAT, tzinfo='UTC').naive
id_token_data = info.get('decoded_id_token')
# Provide backwards compatibility with field names when loading from JSON.