Ensure check_login in all places the access token is used
This commit is contained in:
1 parent
90fb6ea9a7
commit
85f7aa37bc
2 files changed
+2
No files matched your search
@@ -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",
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user