I’m using Appwrite for my web app and noticing that after ~15 minutes, my user session suddenly expires—calls like account.get() start returning 401 Unauthorized.
Here’s what I’ve confirmed so far:
Short-Lived JWT: I’m aware Appwrite’s JWT has a 15-minute expiry, but even if I try account.createJWT() after 15 minutes, it fails because the entire session is gone.
Session Cookie: Looking in the browser, my app’s session cookie is set to expire a year in the future, yet Appwrite still terminates the session around the 15-minute mark.
Has anyone dealt with this mismatch where the cookie’s “Expires” date is far in the future, but Appwrite ends the session after ~15 minutes anyway?
How can I configure (or refresh) the session so it remains valid beyond 15 minutes without forcing the user to re-log in?
my edge case I'm running into is when the user who wandered around the web app successfully steps away for 15+ minutes then comes back, and clicks a button that sends a request to my backend (with JWT) has that request fail.
the only trick I found to make it work again is to manually refresh the whole page/webapp at which point everything works again.
Recommended threads
- How to Ensure a User Can Only Access, Ad...
Hi everyone, I'm building an app using Appwrite, and I'm working on a feature where users can store their favorite items in a "Favorites" collection. Each favo...
- How to cron function with specified end ...
I have function built with hono. support like / , /data, /data/2222. I want to schedule triggger for specific event like /data. orrr event better /data/2222 . i...
- Want to add user to organization without...
Hi, I have accessed the MariaDB instance, but I'm unsure exactly how to add another user to my organization, could I have some assistance? Both me and the othe...