hmm.. Following the example here <https://www.ory....
# talk-kratos
b
hmm.. Following the example here https://www.ory.sh/docs/kratos/session-management/list-revoke-get-sessions#listing-all-active-sessions I am logged in and have active session. By doing:
Copy code
frontend
      .listMySessions({
        page: 1,
        perPage: 10,
      })
      .then((res) => {
        console.log(res)
      })
      .catch((err) => {
        // Couldn't fetch active sessions
        // This might occur if the current session has expired
      })
I will get empty array. But calling:
Copy code
frontend.toSession().then(({data}) => { console.log(data)})
returns active object. (active = true, etc...) Am I missing something obvious? I think I am atm using Kratos created from github master branch. SOLVED: it is listing other than your current sessions
Answering to myself after logging in from another browser.. listMySessions does not list your current active session.