From 727f3bacebfc1fac9a89d67eb6ab3c8a3fdb827c Mon Sep 17 00:00:00 2001 From: Alex Golec Date: Thu, 12 Sep 2024 17:23:14 -0400 Subject: [PATCH] Update token generation script to use a five minute timeout (#177) --- bin/schwab-generate-token.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/schwab-generate-token.py b/bin/schwab-generate-token.py index 584cf93..bb3d37c 100755 --- a/bin/schwab-generate-token.py +++ b/bin/schwab-generate-token.py @@ -9,7 +9,7 @@ def main(api_key, app_secret, callback_url, token_path, requested_browser): try: schwab.auth.client_from_login_flow( api_key, app_secret, callback_url, token_path, - requested_browser=requested_browser, callback_timeout=1) + requested_browser=requested_browser, callback_timeout=300) return 0 except: print('Failed to fetch a token using a web browser, falling back to '