Join Slack
Powered by
Hi guys is it possible to validate the session wit...
# ory-network
b
bright-policeman-41717
04/26/2023, 4:20 AM
Hi guys is it possible to validate the session with go sdk with admin client. For that do i need session id or identity id.
f
fast-lunch-54279
04/26/2023, 8:38 AM
you can do either
https://www.ory.sh/docs/kratos/reference/api#tag/identity/operation/getSession
https://www.ory.sh/docs/kratos/reference/api#tag/identity/operation/listIdentitySessions
fast-lunch-54279
04/26/2023, 8:38 AM
and if you have the user's token or cookie at hand, you can just call /whoami with that
b
bright-policeman-41717
04/26/2023, 12:38 PM
Thank u 👍
3
Views
Open in Slack
Previous
Next