my app has two account business and user. Both uses different email and different sessions. i want to switch between this account frequently each time i switch a new session is created. This is causing rate limit issue how to solve this issue without turning of the rate limit ?. flutter App is used for web and android. Can i save session details and use same session next time ?.
is this how the app works, or are you switching between the two to test things in development?
regardless, the rate limit is in place for the safety of your backend. if you're hitting the rate limit relatively easily, you might need to rethink your UX
Not sure if there is a way to do this in Flutter. Appwrite doesn't have any endpoint that let's you use a session based on the ID, as it would be a pretty obvious security hole imo.
ok, is there any way to get back the session using session id ? .
you can use getSession("current") when logged in to get the current session. You can also do getSession([session_id]) to get a session based on it's id.
Just to clear it out, there is no way for you to "use" a session based on a session id, at least in flutter (as far as i know)
Recommended threads
- listRows result parsing issue
I'm using Appwrite Dart SDK "24.2.0". When I perform a listRows call in dart, I have this reponse in JSON: in " Future<models.RowList> listRows()" { "total" :...
- Broken Flutter SDK >=24.1.0
Row.fromMap now does: ``` data: Map<String, dynamic>.from(map["data"] ?? {}) ``` But Appwrite Cloud TablesDB row responses return custom row columns flattene...
- Flutter OAuth2 does not attach Google se...
Hi Appwrite team, I’m using Appwrite Auth in a Flutter mobile app and trying to upgrade an anonymous user to Google OAuth. Docs say that if there is already a...