Capitalize PKCE code challenge method
authorHarmon <Harmon758@gmail.com>
Mon, 7 Feb 2022 20:04:35 +0000 (14:04 -0600)
committerHarmon <Harmon758@gmail.com>
Mon, 7 Feb 2022 20:04:35 +0000 (14:04 -0600)
tweepy/auth.py

index 27f1babb7d409c872c0914331685454a9d1381c3..72d72e9fcf3e0888f2f96fdafe2fe4ec451d6ba0 100644 (file)
@@ -211,7 +211,7 @@ class OAuth2UserHandler(OAuth2Session):
         ).rstrip(b'=')
         authorization_url, state = self.authorization_url(
             "https://twitter.com/i/oauth2/authorize",
-            code_challenge=code_challenge, code_challenge_method="s256"
+            code_challenge=code_challenge, code_challenge_method="S256"
         )
         return authorization_url