$$jwtparse
Parses the JWT token to retrieve its claims
caution
This function does not validate the JWT. Only returns the claims.
Usage​
{
"$$jwtparse": /* jwt token */
}
"$$jwtparse:{input}"
Returns​
object
(token's payload)
Arguments​
Argument | Type | Values | Required / Default Value | Description |
---|---|---|---|---|
Primary | string | Yes | JWT token |
Examples​
Input
Definition
Output
"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjMifQ.oULSeVU4UsKJL5nxadn3y-HVxNLHeYcDk_YvSt7jb5k"
{
"$$jwtparse": "$"
}
{
"sub": "123"
}
"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjMifQ.oULSeVU4UsKJL5nxadn3y-HVxNLHeYcDk_YvSt7jb5k"
"$$jwtparse:$"
{
"sub": "123"
}