Finish integrity support

This commit is contained in:
DevilXD committed 2022-09-15 07:27:55 +02:00
1 parent 01729761d8
commit fb3c6bf0ce
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -237,7 +237,6 @@ class _AuthState:
raise RuntimeError("Login verification failure")
self.user_id = int(validate_response["user_id"])
cookie["persistent"] = str(self.user_id)
self._twitch._is_logged_in.set()
logger.debug(f"Login successful, user ID: {self.user_id}")
login_form.update(_("gui", "login", "logged_in"), self.user_id)
# update our cookie and save it
@@ -250,6 +249,7 @@ class _AuthState:
headers=self.gql_headers(integrity=False)
) as response:
self.integrity_token = _IntegrityToken(await response.json())
self._twitch._is_logged_in.set()
class Twitch: