admin.listSessions returns 404 while userId is right

If I try to get every user session, I'll get a 404 error. Although I directly copied the User-ID and hardcoded it, it gives me 404:
const userSessions = await authClient.admin.listSessions({
userId: "9ogba97oE4UnKEQtEJZk2"
});
const userSessions = await authClient.admin.listSessions({
userId: "9ogba97oE4UnKEQtEJZk2"
});
2 Replies
bekacru
bekacru11mo ago
I think it's called listUserSessions instead

Did you find this page helpful?