My current approach involves storing user login credentials in local storage and checking for their existence at the start. If present, I validate them against the server; if not, I redirect to the login screen instead of the app.
Unfortunately, I've found that local storage is not reliable as it can be unexpectedly cleared by the operating system (as my experience with iOS has shown). This inconvenience forces users to repeatedly log in, potentially leading to password forgetting or frequent password changes.
I'm exploring alternative solutions such as SQLite, file storage, or cookies. Are there any standard implementations that could address this issue more effectively?
Thank you, EL