is there a non admin endpoint exposed via the sdk ...
# talk-kratos
r
is there a non admin endpoint exposed via the sdk to list a users session? I think I only found the one in
IdentityApi
but it is
/admin/sessions
?
m
r
yes similar to that, but I want all sessions of an identity so they can disconnect one if they think. before I used:
Copy code
this.fetchGet(`${this.config.kratosUrl}/sessions`)
but mixing the ory sdk and my own fetch calls made for really messy code. as exceptions are different all over the place.
typo'd my question, "a user's sessions" 😄 subtle
also, is it safe to assume that everything in
IdentityApi
is
/admin
and requires a PAT?
Any idea? 🫣
m
r
but that requires a PAT and should be done server side, right?
i can't do it client side like
GET /sessions
m
hm true
r
that looks good
thank you 😄
there's also
disableMySession()
🎉