iya-sts
    Preparing search index...

    Variable macaroonAttenuate

    macaroonAttenuate: (
        bytes: any,
        caveats: any,
    ) => { caveats: any; identifier: any; location: any; signature: any } = macaroonAttenuate

    Type Declaration

      • (
            bytes: any,
            caveats: any,
        ): { caveats: any; identifier: any; location: any; signature: any }
      • Appends first-party caveats to a macaroon: the attenuation anybody holding one can make, keyed by its current signature and needing no root key.

        Parameters

        • bytes: any

          the serialised macaroon

        • caveats: any

          the caveats to append, in order

        Returns { caveats: any; identifier: any; location: any; signature: any }

        { location, identifier, caveats, signature } of the result

        Error when the bytes are not a v2 macaroon, or what the library throws