iya-sts
    Preparing search index...

    Variable macaroonMint

    macaroonMint: (
        rootKey: any,
        identifier: any,
        location: any,
        caveats: any,
    ) => { caveats: any; identifier: any; location: any; signature: any } = macaroonMint

    Type Declaration

      • (
            rootKey: any,
            identifier: any,
            location: any,
            caveats: any,
        ): { caveats: any; identifier: any; location: any; signature: any }
      • Mints a version 2 macaroon: an identifier and first-party caveats chained under HMAC-SHA256 from a root key.

        Parameters

        • rootKey: any

          the root key, at least MACAROON_MIN_ROOT_KEY_BYTES

        • identifier: any

          the macaroon's identifier

        • location: any

          its location hint

        • caveats: any

          the first-party caveats, in order

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

        { location, identifier, caveats, signature }

        Error for an unusable root key, or what the library throws