Decode the JWT

You application login page needs to decode the JWT passed to it and leverage the information as needed. You need two pieces of information to decode the JWT:

  1. encodedJWT = The JWT passed to the page.
  2. secret = The JWT signing secret key for your application used to decode the endcoded JWT. This value is stored on the installed package in Marketing Cloud.

Check out our downloadable SDKs to see coding examples in a variety of languages. Below are examples of just the JWT decoding piece, leveraging external libraries referenced in the Resources section below.

node.js Example of Decoding a JWT