Skip to content

Commit

Permalink
fix login
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryu1845 committed Feb 19, 2022
1 parent e663e22 commit 2657ad6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions twspace_dl/login.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,8 @@ def login(self) -> str:
request_flow = self.session.post(
self.task_url, headers=self._headers, json=self._account_dup_check_data
).json()
if "auth_token" in request_flow.cookies.keys():
return str(request_flow.cookies["auth_token"])
if "flow_token" in request_flow.keys():
self.flow_token = request_flow["flow_token"]
# Sometimes it doesn't check account duplication
Expand Down

0 comments on commit 2657ad6

Please sign in to comment.