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
- Usage of the new Client() and dealing wi...
Hey guys, just a quick one - we had some web traffic the other day and it ended up bombing out - To put in perspective of how the app works, we have a Nuxt Ap...
- [Beginner] CLI --queries Syntax Error & ...
Hi everyone! I am a beginner with Appwrite and trying to use the CLI, but I'm stuck with a syntax error. Any guidance would be greatly appreciated! π **Enviro...
- [SOLVED] curl error Number: 6 β function...
Hello, I invested a lot of time in this error in a fresh install of appwrite 1.8.1 and lasted until fix, this if for helping anyone that can have the same weird...