Created a _process_request_for_auth helper method

This commit is contained in:
Taylor Wilsdon
2025-08-05 10:44:27 -04:00
parent 0967594097
commit 07c065c57b
3 changed files with 162 additions and 282 deletions

View File

@@ -642,7 +642,8 @@ def require_google_service(
cache_key = _get_cache_key(user_google_email, service_name, service_version, resolved_scopes)
_cache_service(cache_key, service, actual_user_email)
except GoogleAuthenticationError as e:
raise Exception(str(e))
# Re-raise the original error without wrapping it
raise
# --- Call the original function with the service object injected ---
try:
@@ -773,7 +774,8 @@ def require_multiple_services(service_configs: List[Dict[str, Any]]):
kwargs[param_name] = service
except GoogleAuthenticationError as e:
raise Exception(str(e))
# Re-raise the original error without wrapping it
raise
# Call the original function with refresh error handling
try: