Skip to content

Commit 2a14b50

Browse files
authored
Merge pull request #1 from cfdude/dev
fix(auth): resolve variable scoping issue in service decorator
2 parents 9ddb3b8 + a48e5dd commit 2a14b50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

auth/service_decorator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -567,12 +567,12 @@ def decorator(func: Callable) -> Callable:
567567
@wraps(func)
568568
async def wrapper(*args, **kwargs):
569569
# Extract user_google_email - use robust approach that works with injected services
570+
original_param_names = list(original_sig.parameters.keys())
570571
user_google_email = None
571572
if "user_google_email" in kwargs:
572573
user_google_email = kwargs["user_google_email"]
573574
else:
574575
# Look for user_google_email in positional args using original function signature
575-
original_param_names = list(original_sig.parameters.keys())
576576
try:
577577
user_email_index = original_param_names.index('user_google_email')
578578
if user_email_index < len(args):

0 commit comments

Comments
 (0)