<@U04UQ68083H> how can I perform a logout using a ...
# ory-copilot
f
@chilly-king-10285 how can I perform a logout using a JWT generated from ToSession().TokenizeAs() ?
b
A message from kapa.ai
New message text here
f
and is there a way to convert a jwt back to an opaque ory token?
@chilly-king-10285 and is there a way to convert a jwt back to an opaque ory token?
b
A message from kapa.ai
I'm sorry, but the knowledge sources do not contain any information about converting a JWT (generated from Ory's session-to-JWT feature) back into an opaque Ory session token. The documentation only describes how to convert an Ory session (represented by a session token or cookie) into a JWT for specific use cases, but does not mention any mechanism for reversing this process or exchanging a JWT for an opaque session tokenĀ [Convert Ory Sessions to JSON Web Tokens](https://www.ory.sh/docs/identities/session-to-jwt-cors). If you need to perform actions that require the opaque session token (such as logout), you must retain and use the original session token issued by Ory.