Skip to content

Commit 8a0fc25

Browse files
committed
fix: expiry in compute_engine.IDTokenCredentials
fixes #1323
1 parent bcb85bf commit 8a0fc25

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

google/auth/compute_engine/credentials.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ def _call_metadata_identity_endpoint(self, request):
389389
six.raise_from(new_exc, caught_exc)
390390

391391
_, payload, _, _ = jwt._unverified_decode(id_token)
392-
return id_token, datetime.datetime.fromtimestamp(payload["exp"])
392+
return id_token, datetime.datetime.utcfromtimestamp(payload["exp"])
393393

394394
def refresh(self, request):
395395
"""Refreshes the ID token.

0 commit comments

Comments
 (0)