Skip to content

Commit

Permalink
🐛 Fix: oauth flow anext compatibility (#130)
Browse files Browse the repository at this point in the history
  • Loading branch information
yanyongyu authored Sep 7, 2024
1 parent 8ba7ece commit d895c2c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions githubkit/auth/oauth.py
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ async def async_auth_flow(

auth = token_auth_strategy.get_auth_flow(self.github)
flow = auth.async_auth_flow(request)
request = await anext(flow)
request = await flow.__anext__()
while True:
response = yield request
try:
Expand Down Expand Up @@ -558,7 +558,7 @@ async def async_auth_flow(

auth = auth_strategy.get_auth_flow(self.github)
flow = auth.async_auth_flow(request)
request = await anext(flow)
request = await flow.__anext__()
while True:
response = yield request
await response.aread()
Expand Down

0 comments on commit d895c2c

Please sign in to comment.