Login credentials not saved so cannot auto access premium content
So for Crunchyroll and Viz require the user to be logged in basically. I can manually login and everything works and continues to work across a quick restart. However, if a few days go buy the session seems to expire. It seems the session expires even when the cookies (including the session cookie) haven't. Didn't seem like a if problem, since the server itself can tell when if fails due to an authentication problem, so I was just going to manually load the saved credentials but they seem to always be None...
Was curious if anyone else was having the issue of login credentials not being saved. Also when login in manually, username/password is also not pre-filled.
Once that's sorted out, there's problem when to re-login. I claim the current solution of checking expired cookies on server initialization doesn't seem to work. Most reliable way seems to be to try and access content and see if the request gets denied.
Thoughts:
- All the servers have try-catch blocks everywhere and re-login on auth errors
- The caller blindly try/catches and retires
- We just have a re-login button like we have the retry button
- We re-login every server initialization