Skip to content

Commit

Permalink
Fix: Ensure autogenerate_code_verifier defaults to True in from_clien…
Browse files Browse the repository at this point in the history
…t_config
  • Loading branch information
Perun108 committed Jun 11, 2024
1 parent 3c3d82a commit 8e8ef27
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion google_auth_oauthlib/flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,9 @@ 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", True)
autogenerate_code_verifier = kwargs.pop("autogenerate_code_verifier", None)
if not code_verifier and autogenerate_code_verifier is None:
autogenerate_code_verifier = True

(
session,
Expand Down

0 comments on commit 8e8ef27

Please sign in to comment.