Skip to content

Commit f31f660

Browse files
authored
Merge pull request #121 from MerleLiuKun/fix-token
fix(token): 🐛 fix token initial with generated by ouath flow.
2 parents 64fcfd2 + d487f4b commit f31f660

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pytwitter/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ def generate_oauth2_access_token(
371371
authorization_response=response,
372372
code_verifier=code_verifier,
373373
)
374-
self._auth = OAuth2Auth(token=token["access_token"])
374+
self._auth = OAuth2Auth(token=token)
375375
return token
376376

377377
@staticmethod

0 commit comments

Comments
 (0)