Reads the custom boolean value with the provided name in the consent section of the provided Access Credential.
Throws on type mismatch, and returns undefined if no values are found.
Parameters
accessCredential: DatasetWithId
The Access Credential (Access Grant or Access Request)
field: URL
Returns undefined|boolean
the custom boolean field with the provided name
Example
constaccessRequest = awaitissueAccessRequest({...}, { ..., customFields:newSet([ { key:newURL("https://example.org/ns/customBoolean"), value:true, }, ]), }); // b is true constb = getCustomBoolean(accessRequest, newURL("https://example.org/ns/customBoolean"));
Reads the custom boolean value with the provided name in the consent section of the provided Access Credential. Throws on type mismatch, and returns
undefined
if no values are found.