Add a new string grant requirement to this JWT validation object.
@param jwt_valid Pointer to a JWT validation object.
@param grant String containing the name of the grant to add.
@param val String containing the value to be saved for grant. Can be
an empty string, but cannot be NULL.
@return Returns 0 on success, valid errno otherwise.
Note, this only allows for string based grants. If you wish to add
integer grants, then use jwt_valid_add_grant_int(). If you wish to add more
complex grants (e.g. an array), then use jwt_valid_add_grants_json().
Add a new string grant requirement to this JWT validation object.
@param jwt_valid Pointer to a JWT validation object. @param grant String containing the name of the grant to add. @param val String containing the value to be saved for grant. Can be an empty string, but cannot be NULL. @return Returns 0 on success, valid errno otherwise.
Note, this only allows for string based grants. If you wish to add integer grants, then use jwt_valid_add_grant_int(). If you wish to add more complex grants (e.g. an array), then use jwt_valid_add_grants_json().