Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: clarify jwt tokenizer #1970

Merged
merged 3 commits into from
Dec 20, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 7 additions & 8 deletions docs/identities/session-to-jwt-cors.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,15 @@ sidebar_label: Session to JWT

# Convert Ory Sessions to JSON Web Tokens

Ory offers a powerful session management system that is based on cookies. In some contexts however, relying on Cookies is not
possible:
Ory provides a robust session management system that uses cookies for browser clients and API tokens for API clients. It also
supports converting a session into a JSON Web Token (JWT). A JWT can be a better option in scenarios such as:

- You need to make a cross-origin (CORS) request where including the Ory Session Cookie is not trivial or possible.
- You need a JWT which represents a signed-in user.
- You need to integrate with a third party such as
[Zendesk SSO JWTs](https://support.zendesk.com/hc/en-us/articles/4408845838874).
- You want to reduce the amount of calls to Ory's APIs.
- Making cross-origin (CORS) requests where including the Ory session cookie or session token is difficult or not possible.
- Representing a signed-in user with a JWT.
- Integrating with third-party services, such as [Zendesk SSO JWTs](https://support.zendesk.com/hc/en-us/articles/4408845838874).
- Reducing the number of calls to Ory's APIs.

In this guide, we will show you how to convert Ory Sessions to JSON Web Tokens (JWTs).
This guide explains how to convert Ory sessions into JSON Web Tokens (JWTs).

## End-to-end example

Expand Down
Loading