Back

[SOLVED] Session offline

  • 0
  • Flutter
  • Accounts
hortigado
1 Jul, 2023, 15:10

Hi, I'm implementing appwrite with an offline package through api rest, but when offline, appwrite self-tentification is lost. How can I keep the session while I'm offline? In addition to this, I have another problem and that is that the api rest requests do not recognize the session that I do through the appwrite package. Should I authenticate using rest api?

TL;DR
The user is facing two issues while implementing appwrite with an offline package through API REST: 1) losing appwrite self-authentication when offline, and 2) API REST requests not recognizing the session created through the appwrite package. The solution to the first issue is to manually manage and persist the session. More details can be found in the provided link. As for the second issue, the user suggests authenticating using the REST API.
Drake
2 Jul, 2023, 01:39

You'll have to manually manage and persist the session. See https://appwrite.io/docs/rest#client-auth

hortigado
2 Jul, 2023, 14:19

I don't know why I didn't read that, thanks with that I managed to make it work <:appwritepeepo:902865250427215882>

hortigado
2 Jul, 2023, 14:20

[SOLVED] Session offline

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