I am trying to find the active user session but the session documents returned from account.listSessions() display current: false for every session.
A workaround I am using is to decode the jwt on the client-side which contains logged in user's sessionId and comparing it to the list of sessionIds. Wondering if there's a better way to do this?
Thank you!
account.getSession('current')?
I have not tried using this, will give it a shot and let you know how it works. Thank you
why do you need to get the session?
Recommended threads
- Anyone manage to get a slack-bot working...
I'm trying to setup a bot the send and retrieve slack messages to a chat in my site. I've failed with SSE and appwrite functions soo far... i'll trying polling ...
- [Sites] Deployment finished but site is ...
The deployment finished and is active but the site shows timeout error.
- Does Appwrite allow SSE ?
i'm trying to setup a slack bot on my site. Your deployed SSE endpoint is returning a non‑SSE response …and the browser immediately closes the connection. read...