Skip to content

Commit 5159a30

Browse files
savytskyitaeold
andauthored
fix: Crash in auth blocking function when using with phone auth (#146)
Co-authored-by: Daniel Lee <[email protected]>
1 parent 8191761 commit 5159a30

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/firebase_functions/private/_identity_fn.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ def _auth_user_record_from_token_data(token_data: dict[str, _typing.Any]):
114114
return AuthUserRecord(
115115
uid=token_data["uid"],
116116
email=token_data.get("email"),
117-
email_verified=token_data["email_verified"],
117+
email_verified=token_data.get("email_verified"),
118118
display_name=token_data.get("display_name"),
119119
photo_url=token_data.get("photo_url"),
120120
phone_number=token_data.get("phone_number"),

0 commit comments

Comments
 (0)