DarkCat09 / python-aternos

[UNMAINTAINED] Unofficial Aternos API written in Python
https://pypi.org/project/python-aternos/
Apache License 2.0
92 stars 13 forks source link

Double request to aternos.org/go #54

Closed DarkCat09 closed 1 year ago

DarkCat09 commented 1 year ago

from_credentials parses token (view the 67th line) and then checks if there is a saved session for this username.
If a session has been found, from_session parses token again (on the 138th line).
So python-aternos sends two requests which is not good.

DarkCat09 commented 1 year ago

Fixed in https://github.com/DarkCat09/python-aternos/commit/5919bebccb0a8f1081cf55136e2fd2ffe98b43ee