jwt_valid_get_grant_bool

Return the value of an boolean required grant.

Returns the int value for a grant (e.g. "exp"). If it does not exist, 0 will be returned.

@param jwt_valid Pointer to a JWT validation object. @param grant String containing the name of the grant to return a value for. @return Returns a boolean for the value. Sets errno to ENOENT when not found.

Note, this will only return grants with JSON boolean values. Use jwt_valid_get_grants_json() to get the JSON representation of more complex values (e.g. arrays) or use jwt_valid_get_grant() to get string values.

extern (C) nothrow @nogc
int
jwt_valid_get_grant_bool
(,
const(char)* grant
)

Meta