gray-library-49237
01/12/2025, 12:09 AMbrief-egg-61061
01/12/2025, 12:09 AMbrief-egg-61061
01/12/2025, 12:09 AMextendSession
API method, as mentioned in the [Kratos API Reference](https://www.ory.sh/docs/kratos/reference/api). If you specifically need to work with JWT refresh tokens, you might want to look into Ory Hydra, which is Ory's OAuth2 and OpenID Connect provider. Hydra supports refresh token rotation and security protections as described in the [OAuth2 Refresh Token Grant documentation](https://www.ory.sh/docs/oauth2-oidc/refresh-token-grant#refresh-token-rotation-and-security-protections). To directly answer your question: You cannot extend a refresh token on Kratos JWT because Kratos doesn't natively use JWTs for sessions. If you need JWT functionality with refresh capabilities, you may need to explore using Ory Hydra or implement additional layers on top of Kratos.