File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -182,7 +182,7 @@ async def as_web_user(
182182 async def as_user (self , token : str ) -> AsyncGenerator [Self , None ]:
183183 if self ._ctx_github is not None :
184184 raise RuntimeError ("Can not enter context twice." )
185- self ._ctx_github = GitHub (TokenAuthStrategy (token ))
185+ self ._ctx_github = self . _github . with_auth (TokenAuthStrategy (token ))
186186 async with self ._ctx_github :
187187 try :
188188 yield self
@@ -267,7 +267,7 @@ async def as_web_user(
267267 async def as_user (self , token : str ) -> AsyncGenerator [Self , None ]:
268268 if self ._ctx_github is not None :
269269 raise RuntimeError ("Can not enter context twice." )
270- self ._ctx_github = GitHub (TokenAuthStrategy (token ))
270+ self ._ctx_github = self . _github . with_auth (TokenAuthStrategy (token ))
271271 async with self ._ctx_github :
272272 try :
273273 yield self
You can’t perform that action at this time.
0 commit comments