From 8782aabf1c06edfd82d61051f097c6608a7dd03b Mon Sep 17 00:00:00 2001 From: Daniel Young Lee Date: Wed, 19 Apr 2023 19:06:40 -0700 Subject: [PATCH] Fix bug with blocking auth response. --- src/firebase_functions/private/_identity_fn.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/firebase_functions/private/_identity_fn.py b/src/firebase_functions/private/_identity_fn.py index 04ffcaa..e301141 100644 --- a/src/firebase_functions/private/_identity_fn.py +++ b/src/firebase_functions/private/_identity_fn.py @@ -324,7 +324,7 @@ def before_operation_handler( auth_response: BeforeCreateResponse | BeforeSignInResponse | None = func( event) if not auth_response: - return _jsonify(result={}) + return _jsonify({}) auth_response_dict = _validate_auth_response(event_type, auth_response) update_mask = ",".join(auth_response_dict.keys()) result = { @@ -333,7 +333,7 @@ def before_operation_handler( "updateMask": update_mask, } } - return _jsonify(result=result) + return _jsonify(result) # Disable broad exceptions lint since we want to handle all exceptions. # pylint: disable=broad-except except Exception as exception: