Skip to content

Commit fe76537

Browse files
Apply suggestion from @gemini-code-assist[bot]
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
1 parent af4fdbb commit fe76537

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

auth/cloud-client-temp/verify_google_idtoken.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def verify_google_idtoken(idtoken: str, audience: str = "iap.googleapis.com",
5656
print(f"User id: {result['sub']}")
5757
# Optionally, if "INCLUDE_EMAIL" was set in the token options, check if the
5858
# email was verified.
59-
if result['email_verified'] == "True":
59+
if result.get('email_verified'):
6060
print(f"Email verified {result['email']}")
6161

6262
# [END auth_cloud_verify_google_idtoken]

0 commit comments

Comments
 (0)