Replies: 2 comments 1 reply
-
|
This seems like a very reasonable request, especially for Flutter apps built around offline-first synchronization patterns. In many offline-first architectures, having access to the raw auth cookie/session token is important because synchronization layers, local persistence systems, and custom HTTP stacks often need direct control over authentication state rather than relying entirely on the SDK’s internal storage behavior. If developers currently have to patch or fork the Flutter SDK just to expose cookie/session handling, that’s usually a sign the abstraction layer is hiding something that advanced use cases legitimately need access to. This becomes especially relevant for:
One possible approach could be:
Something like: final session = await account.createEmailPasswordSession(
email: email,
password: password,
);
final rawCookie = session.cookie;or a pluggable persistence layer: client.setSessionStorage(customStorageHandler);would probably solve many offline-first integration issues without forcing developers to maintain SDK patches. The important part is keeping the default developer experience simple while still allowing advanced control for teams building more complex sync architectures. Related references:
Definitely feels like a valid DX improvement request for advanced Flutter/offline-first use cases. |
Beta Was this translation helpful? Give feedback.
-
|
Hi, I currently solved it with |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I'm currently using AppWrite with Brick in Flutter to support offline first, but the problem is that AppWrite doesn't return the cookie upon login. This forces me to modify the Flutter package to do so. Could you implement this so I don't have to keep modifying the package? Thanks
Beta Was this translation helpful? Give feedback.
All reactions