Validate JWT
shop_validate_jwtReturns whether or not a given JWT is valid and associated with a specified user:
HTTP_200_OK: The JWT is valid and linked to the targeted user. Theis_anonymousfield in the response payload indicates if the user is anonymous or logged in into its account.HTTP_400_BAD_REQUESTwith error code4000: The JWT is not valid or not related to the specified user Guidance: Returns whether or not a given JWT is valid and associated with a specified user. HTTP 200: The JWT is valid and link... | context: jwt
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"jwt": "<jwt>"
},
"name": "shop_validate_jwt"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| jwt | Yes | Token to validate. | |
| user_id | No | Unique ID of the user against which the token should be validated. |