Logging in with cookie

This commit is contained in:
DarkCat09 2023-05-29 12:02:45 +04:00
parent 4baf4ea1a7
commit 6cdca11a0e

View file

@ -117,6 +117,15 @@ class Client:
self.save_session(filename)
except OSError:
pass
def login_with_session(self, session: str) -> None:
"""Log in using ATERNOS_SESSION cookie
Args:
session (str): Session cookie value
"""
self.atconn.session.cookies['ATERNOS_SESSION'] = session
def logout(self) -> None:
"""Log out from the Aternos account"""