@inrupt/solid-client-access-grants
    Preparing search index...

    Function getCustomBoolean

    • 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

      const accessRequest = await issueAccessRequest({...}, {
      ...,
      customFields: new Set([
      {
      key: new URL("https://example.org/ns/customBoolean"),
      value: true,
      },
      ]),
      });
      // b is true
      const b = getCustomBoolean(accessRequest, new URL("https://example.org/ns/customBoolean"));

      3.2.0