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
- general_unauthorized_scope
localhost oauth not working. general_unauthorized_scope error showing. { "message": "User (role: guests) missing scopes ([\"account\"])", "code": 401, ...
- 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.