-
Notifications
You must be signed in to change notification settings - Fork 82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: run_local_server block when waiting for response #245
Conversation
@@ -449,6 +449,7 @@ def run_local_server( | |||
success_message=_DEFAULT_WEB_SUCCESS_MESSAGE, | |||
open_browser=True, | |||
redirect_uri_trailing_slash=True, | |||
timeout_seconds=None, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add inline documentation for this new parameter?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done, added the documentation with the new commit.
LGTM - Just need the documentation updated |
google_auth_oauthlib/flow.py
Outdated
@@ -478,6 +479,9 @@ def run_local_server( | |||
in the user's browser. | |||
redirect_uri_trailing_slash (bool): whether or not to add trailing | |||
slash when constructing the redirect_uri. Default value is True. | |||
timeout_seconds (int): It will raise an error after the timeout timing | |||
if there are no credentials response. The value is in seconds. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if there are no credentials response. The value is in seconds. | |
if there are no credentials response. The value is in seconds. | |
When set to None there is no timeout. |
Thank you for your contribution @wonggw ! |
Please run the workflows again. Had to push a new commit to fix the lint. |
Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:
Fixes #239 🦕