How to get the Session Token (X-Session-Token) if I have only the Session cookie? #3835
-
Hello! I have a logged in Ory session with it's cookies, How can I get the Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
I found this in the docs:
As I understand this (correct me if I'm wrong), it's not possible (by design) to exchange a session cookie for a session token. |
Beta Was this translation helpful? Give feedback.
-
You can convert a cookie to a token: https://www.ory.sh/docs/identities/session-to-jwt-cors |
Beta Was this translation helpful? Give feedback.
You can convert a cookie to a token: https://www.ory.sh/docs/identities/session-to-jwt-cors
Note that this issues a new token, and not a session token itself, so they work a little differently to just using session tokens.