I have a self-hosted Appwrite container. I also have a www page (A) which should acts as login page for different www services (B). User click login in B, is redirected to A, logs in, he is redirected back to A. On A is executed Appwrite function and Appwrite sets cookie with a session to the domain B. it works. But the same scheme doesn't work for the apps, in my case Flutter app. I want in Flutter to click login button, be redirected to the website A, login and be redirected back with working session (kinda like SSO works). So my question is: How to implement this? Currently it works for me only via JWT tokens, but they expire very soon. How to open session in the Flutter app after being logged in the browser? What is the exact algorithm? Thanx a lot for any help!
Recommended threads
- RowList: The value of total is coming as...
RowList: The value of total is coming as a String, so it throws an error because it’s not parsed into an int. Error: TypeError: \"37\": type 'String' is not a ...
- 408 Timeout / Curl Error 7 in Executor w...
Hey everyone, I am losing my mind over a routing loop/timeout issue on a fresh self-hosted setup. I have a single Linux VPS (IP: 45.141.37.105) and one domain (...
- functions returning error 401 in local
I updated to 1.9.0, and the functions that used to work fine in 1.8.1 are now giving me a 401 error. I can't seem to find a solution. If anyone is running versi...