Enrich JWT Token

Adds information to the token created upon journey completion.

Description

When a journey completes successfully, a JWT token is generated and returned to the client application. The client can then validate the token signature and extract the info contained within its claims. You can add custom claims to the token, where each claim value is evaluated at runtime. This can be used to securely return additional info to the client application upon journey completion.

Configuration

Field Description
JWT Token Enrichment Values A list of custom claims to add to the token. The name represents the claim ID and the expression yields the value for the generated claim at runtime.
Note

A custom claim cannot use the same ID of one of the standard claims generated by Transmit:
jti, exp, aud, pid, did, sid, iat, ted, params, pvid

Example

Suppose transaction details are provided by the client when initiating a journey in a transactionDetails object. You can include them in the generated token in a claim named transaction_details configuring the following: