on_claim_info Event
Fires once for each claim.
Syntax
class JWTClaimInfoEventParams(object): @property def name() -> str: ... @property def value() -> str: ... @property def data_type() -> int: ... # In class JWT: @property def on_claim_info() -> Callable[[JWTClaimInfoEventParams], None]: ... @on_claim_info.setter def on_claim_info(event_hook: Callable[[JWTClaimInfoEventParams], None]) -> None: ...
Remarks
When decrypt, verify or parse is called this event will fire once for each claim in the JWT.
Name is the name of the claim.
Value is the value of the claim.
DataType specifies the JSON data type of the value. Possible values are:
- 0 (Object)
- 1 (Array)
- 2 (String)
- 3 (Number)
- 4 (Bool)
- 5 (Null)