Understanding check:
createAnonymousSession() registers the session with the backend
setSession() creates a cookie on the user’s computer(?)
getSession(‘current’) retrieves that cookie so that the user can pick up where they left off(?)
So I would call getSession(‘current’) on load, and if it fails I create and set a session so it doesn’t fail the next time the user visits. Is that correct?
Are you using SSR?
no
Did you go through https://appwrite.io/docs/products/auth/quick-start?
Set session is only used for SSR
GetSession only gets the session data, not any cookie or anything like that.
I believe I consulted that page, yes. I was unsure whether account.get() would work with anonymous users.
Recommended threads
- Weird permission failure
when creating an account I use following methods: ``` Future<void> register(String email, String password, String username) async { final user = await accoun...
- Appwrite Storage error 503s for automate...
I'm facing error 503s from Appwrite after about 5-6 seconds of making AI requests from my tool with images and files above 20MB (=> not inline base64 used, but ...
- Flutter Android oAuth is no more working
I currently don't get the oAuth login to work in flutter android. it works on ios and on web. but when try to use it on Android, i get to the point where the ca...