square-eye-77845
09/23/2025, 8:56 PMConvert sessions to JWTs on your entry point. You then have the option to add caching to further reduce the number of API calls made. More information on this approach is available in the section below.https://www.ory.sh/docs/kratos/session-management/overview#use-ory-oathkeeper-to-convert-sessions-to-jwts I don't get how that will allow to cache anything? If oathkeeper does not do some session-cookie caching it merely converts cookie to jwt on each request, and this shifts session validation logic from backend to oathkeeper. But only real option is still to create JWTs on the frontend for frequent operations?
bland-eye-99092
09/24/2025, 2:25 AMsquare-eye-77845
09/24/2025, 9:15 AMsteep-lamp-91158
feels wildly ineffectiveThis is required though for proper session invalidation. With that in mind, there are definitely use-cases where it is prohibitive to call whoami on every single call (most cases should be fine, and we have edge caching on ory network to solve that). Regardless, we also have a session-to-JWT feature: https://www.ory.sh/docs/identities/session-to-jwt-cors
steep-lamp-91158
square-eye-77845
09/24/2025, 9:25 AMsteep-lamp-91158