Logging in with cookie
This commit is contained in:
parent
4baf4ea1a7
commit
6cdca11a0e
1 changed files with 9 additions and 0 deletions
|
@ -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"""
|
||||
|
|
Reference in a new issue