This commit is contained in:
2026-01-01 07:14:18 -08:00
parent 25745cf6d6
commit c45e41b6a9
100 changed files with 8068 additions and 2424 deletions

View File

@@ -0,0 +1,27 @@
import garth
import inspect
try:
# Try to inspect sso.login directly if available
from garth import sso
print(f"sso.login signature: {inspect.signature(sso.login)}")
except ImportError:
print("Could not import garth.sso")
# Try dummy call to catch argument errors without actually logging in
try:
print("Testing return_on_mfa=True...")
garth.login("dummy", "dummy", return_on_mfa=True)
except TypeError as e:
print(f"return_on_mfa failed: {e}")
except Exception as e:
print(f"return_on_mfa result: {type(e).__name__} (This is good, it accepted the arg)")
try:
print("Testing prompt_mfa=True...")
garth.login("dummy", "dummy", prompt_mfa=True)
except TypeError as e:
print(f"prompt_mfa failed: {e}")
except Exception as e:
print(f"prompt_mfa result: {type(e).__name__}")