Ensure check_login in all places the access token is used

This commit is contained in:
DevilXD committed 2022-08-22 10:00:18 +02:00
1 parent 90fb6ea9a7
commit 85f7aa37bc
2 files changed
+2

No files matched your search

+1
View File
@@ -884,6 +884,7 @@ class Twitch:
async def gql_request(self, op: GQLOperation) -> JsonType:
gql_logger.debug(f"GQL Request: {op}")
await self.check_login()
async with self.request(
"POST",
"https://gql.twitch.tv/gql",
+1
View File
@@ -200,6 +200,7 @@ class Websocket:
# nothing to do
return
self._topics_changed.clear()
await self._twitch.check_login()
current: set[WebsocketTopic] = set(self.topics.values())
# handle removed topics
removed = self._submitted.difference(current)