When restarting my app, is there a way I can have the user log back in using the session object, so the user doesn’t have to re-enter their credentials?
Since the SDK automatically persists sessions, the user is already authenticated the next time they come back to your app.
The typical pattern is to do the following on app start:
- Call
account.get()2a. If that returns successfully, the user is already authenticated and you can redirect them into the app. 2b. If an exception is thrown, they don't have a session so redirect them to the login page
Recommended threads
- Bulk API limitations in self-hosted serv...
Environment: Appwrite Selfhost SDK: node-appwrite 28.0 Calling `upsertRows` (also applies to `createRows`/`updateRows`/`deleteRows`) with more than 100 rows fa...
- Self Hosted GitHub connection not adding...
After upgrading to 1.9.6 i noticed that i cannot search for new repositories when trying to add new functions. I removed the existing github connection via Set...
- Unable to init function via cli
Hello! I have created a new self hosted instance of appwrite 1.9.6 and have connected to that insatnce with the cli 27.2.0 that was released a few hours ago. Wh...