diff --git a/supabase_auth/helpers.py b/supabase_auth/helpers.py index 0c9a0613..0de0bdff 100644 --- a/supabase_auth/helpers.py +++ b/supabase_auth/helpers.py @@ -103,8 +103,8 @@ def parse_sso_response(data: Any) -> SSOResponse: def get_error_message(error: Any) -> str: props = ["msg", "message", "error_description", "error"] - filter = ( - lambda prop: prop in error if isinstance(error, dict) else hasattr(error, prop) + filter = lambda prop: ( + prop in error if isinstance(error, dict) else hasattr(error, prop) ) return next((error[prop] for prop in props if filter(prop)), str(error))