Back

Session creation rate issue

  • 0
  • Flutter
  • Accounts
Karthik
21 Aug, 2023, 18:48

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 ?.

TL;DR
The user is asking if it's possible to retrieve a session using a session ID in Flutter. The response states that it's not possible in Flutter and that Appwrite does not have an endpoint for it due to security concerns. It also suggests rethinking the UX if hitting the rate limit easily. The user wants to switch between two different accounts, causing a rate limit issue. They ask for a solution that doesn't involve turning off the rate limit. The response does not provide a solution.
safwan
21 Aug, 2023, 18:51

is this how the app works, or are you switching between the two to test things in development?

safwan
21 Aug, 2023, 18:53

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

safwan
21 Aug, 2023, 18:56

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.

Karthik
21 Aug, 2023, 19:11

ok, is there any way to get back the session using session id ? .

safwan
22 Aug, 2023, 04:51

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.

safwan
22 Aug, 2023, 04:52

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)

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more