diff --git a/cli/src/commands/auth_cmd.py b/cli/src/commands/auth_cmd.py index bf9837a..b938550 100644 --- a/cli/src/commands/auth_cmd.py +++ b/cli/src/commands/auth_cmd.py @@ -24,6 +24,7 @@ def login(ctx: CliContext, username: str, password: str, mfa_code: Optional[str] """Authenticate with your Garmin account""" async def run_login(): + nonlocal mfa_code # Add this line api_client = ctx.api_client # Use api_client from context if api_client is None: click.echo("Error: API client not initialized.")