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

    Function getCustomInteger

    • Reads the custom integer 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 | number

      the custom integer field with the provided name

      const accessRequest = await issueAccessRequest({...}, {
      ...,
      customFields: new Set([
      {
      key: new URL("https://example.org/ns/customInteger"),
      value: 1,
      },
      ]),
      });
      // i is 1
      const i = getCustomInteger(accessRequest, new URL("https://example.org/ns/customInteger"));

      3.2.0