iya-sts
    Preparing search index...
    attenuate: (
        value: unknown,
        datalogSource: unknown,
        keys: any,
        parameters?: Record<string, unknown>,
    ) => Promise<any> = ...

    Type Declaration

      • (
            value: unknown,
            datalogSource: unknown,
            keys: any,
            parameters?: Record<string, unknown>,
        ): Promise<any>
      • Appends a block of checks to a biscuit, deriving a narrower token without calling the AS (RFC 9767 section 2.2).

        The token is verified first; a block holding a policy (allow if) is refused by the library.

        Parameters

        • value: unknown

          the biscuit to attenuate

        • datalogSource: unknown

          the Datalog checks of the new block

        • keys: any

          { publicKey } the biscuit verifies against

        • Optionalparameters: Record<string, unknown>

          values for the block's parameters

        Returns Promise<any>

        { ok: true, value, format }, or a refusal