Skip to content

Commit d487f4b

Browse files
committed
fix(token): 🐛 fix token initial with generated by ouath flow.
1 parent 64fcfd2 commit d487f4b

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)