Get answers, ideas, and support from the Apigee Community

Get Header and Payload from a DecodeJWT

Hello, I have a policy that is decoding the JWT from a request. Now I want to use the Header and the Payload that I got in another policy, there is any way that I can do that? Can I store the decodedJWT result in a variable and access it from another policy?

Hi Siddharth yes I tought on that, but if I add a new step with a custom javascript policy and I try to access to the jwt.{policy_name}.{variable_name} or context.jwt.{policy_name}.{variable_name} I got undefined.