Skip to content

Commit cfb60ba

Browse files
author
Eviee Py
committed
Revert setup_hook position but keep token assignment.
1 parent 5e355bd commit cfb60ba

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

twitchio/client.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,11 +280,12 @@ async def login(self, *, token: str | None = None) -> None:
280280
logger.info("Generated App Token for Client-ID: %s", validated.client_id)
281281

282282
self._http._app_token = token
283-
await self.setup_hook()
284283

285284
async with self._http._token_lock:
286285
await self.load_tokens()
287286

287+
await self.setup_hook()
288+
288289
async def __aenter__(self) -> Self:
289290
return self
290291

0 commit comments

Comments
 (0)