lanis-mobile / LanisAPI

A package for interacting with Lanis.
https://lanisapi.readthedocs.io/
MIT License
12 stars 2 forks source link

🔨 - Save cookies after close() #28

Closed kurwjan closed 11 months ago

kurwjan commented 12 months ago

As stated here the session is for 100min valid after the last request. So when we call close() we could save the session cookies (encrypted) and on the next authenticate() we just load it. Also add support for 30 days long sessions.

30 days session

It uses the same URLs as the normal login but it additionally posts to https://start.schulportal.hessen.de/registerbrowser and saves the cookie SPH-AutoLogin. What to post is unknown.

Remove encryption because it's unnecessary.

kurwjan commented 11 months ago

Finished with 5562476 and will be released with 0.4.0