
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
- Internal 500 Server Error
I don't have much information but I am unable to create anything on database, Auth users are creating but not able to fetch into database
- CORS + 401 Error with Appwrite Authentic...
I'm getting a CORS + 401 Error with Appwrite Authentication Access to fetch at 'https://cloud.appwrite.io/v1/account/sessions/email' from origin 'https://my-c...
- Exposing project id and endpoint on GitH...
Is it best practice to expose your project id and endpoint in your appwrite.js file when publishing an NextJS or Angular project. If you use a .env file, that i...
