Hi, I am currently struggling with keeping the created session alive when closing the app completely on the iPhone.
I tried different things, like storing credentials in the keychain, that does not work for me. If the app is getting closed, the first screen when opening the app again is the Welcome page and the user is logged out. Any ideas on that?
If you're using the Appwrite SDK, session persistence is handled automatically. You would need to call account.get() on app start to see if there's a session already. If it throws an exception, there's no session, so redirect the user to the log in page
Recommended threads
- User ID case sensitivity
I see that through REST (and SDK as well), getting a user is not case sensitive. And even though documentation does not clearly state that it is, the wording "V...
- Any way to temporarily bypass the email ...
Hey guys, any way to bypass the email verification to use the accounts again? i need to recover some projects that due to recent changes have been stopped, and ...
- How to use Sites on selfhosted appwrite
whenever I try to create a site even with template it says 404 nginx error