Hi guys,
I have an issue, I hope you can help me.
I am trying to implement a login for my Flutter web app.
I want to implement that if the user closes the browser or reloads the page the Flutter app searches for the session id, which was saved in the local storage of the browser. With the session id I can get the user id which I use to retrieve the user object. In that way, I repopulate the data in the classes and the pages without having the user log in again.
My issue is that to retrieve a user by user id I need to use the Dart SDK. The user object of the Dart SDK is different from the Flutter SDK.
I could retrieve the user by using account.get() from the Flutter SDK, but all classes and objects are rebuilt when I refresh the page in the browser so the object will be null.
Do you have a workaroud for the issue?
Recommended threads
- 500 Internal Error when Project is opene...
After migrating from 1.6.1 to 1.7.4 I noticed this strange behaviour: When I open a project in a separate tab I get a 500 internal error. However, then I simpl...
- CORS error only on tables db api After u...
I've recently updated my self hosted appwrite instance to the 1.8.0 and updated my frontend with the tables db apis but strangely, even if I'm able to log in, g...
- [SOLVED] Access ExecutionStatus of a fun...
I am calling a cloud function from the newest Flutter SDK 20.2.1with the `xasync: false` flag and get the result, but the `execution.status` is not a String and...