Returns the int value for a grant (e.g. "exp"). If it does not exist,
0 will be returned.
@param jwt Pointer to a JWT object.
@param grant String containing the name of the grant to return a value
for.
@return Returns an int for the value. Sets errno to ENOENT when not
found.
Note, this will only return grants with JSON integer values. Use
jwt_get_grant_json() to get the JSON representation of more complex
values (e.g. arrays) or use jwt_get_grant() to get string values.
Return the value of an integer grant.
Returns the int value for a grant (e.g. "exp"). If it does not exist, 0 will be returned.
@param jwt Pointer to a JWT object. @param grant String containing the name of the grant to return a value for. @return Returns an int for the value. Sets errno to ENOENT when not found.
Note, this will only return grants with JSON integer values. Use jwt_get_grant_json() to get the JSON representation of more complex values (e.g. arrays) or use jwt_get_grant() to get string values.