Skip to content
2 changes: 2 additions & 0 deletions google_auth_oauthlib/flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,8 @@ def from_client_config(cls, client_config, scopes, **kwargs):
# these args cannot be passed to requests_oauthlib.OAuth2Session
code_verifier = kwargs.pop("code_verifier", None)
autogenerate_code_verifier = kwargs.pop("autogenerate_code_verifier", None)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
autogenerate_code_verifier = kwargs.pop("autogenerate_code_verifier", None)
autogenerate_code_verifier = kwargs.pop("autogenerate_code_verifier", True)

if not code_verifier and autogenerate_code_verifier is None:
autogenerate_code_verifier = True
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think let's revert this, and instead add a guard in the autogenerate logic.


(
session,
Expand Down