jwt function
jwt: the value must have the structure of a JSON Web Token (the JWS
compact serialization): three base64url segments without padding,
separated by ., the last one may be empty (an unsecured JWT). The
segments are not decoded or verified. The output is the value as a
string.
Implementation
LivrRule jwt(List<Object?> args, RuleContext context) {
if (args.isNotEmpty) {
throw const LivrSchemaException('Rule [jwt] takes no arguments');
}
return _jwt;
}