RajivOriginal post
Rank 1: Thread
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!
Summary
The user is asking for a way to find the active user session but is currently using a workaround by decoding the JWT on the client-side and comparing it to the list of session IDs. They are asking if there is a better way to do this.