Skip to content

getJWTClaim

getJWTClaim(token, claim) → any · Security

Gets a specific claim from a JWT token payload. See Chapter 38.

  • token (required): JWT token string

  • claim (required): claim name (e.g., "sub", "email", custom claims)

utlx
{
  email: getJWTClaim($input.token, "email"),
  role: getJWTClaim($input.token, "role")
}

Released under AGPL-3.0.