hi @sonofthetech Unfortunately, there’s no direct way to exchange a session for a JWT in Zitadel. Sessions and tokens operate in separate contexts, and Zitadel avoids mixing these mechanisms for security reasons.
For Web, Use the Authorization Code Flow with your custom UI. After authentication, redirect users to Zitadel’s OIDC endpoint to obtain an authorization code. Exchange this code for a JWT (access token) on your backend.
For Mobile, Use the same Authorization Code Flow with PKCE.