iya-sts
    Preparing search index...

    Variable macaroonImport

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

    Type Declaration

      • (bytes: any): { caveats: any; identifier: any; location: any; signature: any }
      • Reads a libmacaroons v2 binary macaroon WITHOUT verifying it.

        Parameters

        • bytes: any

          the serialised macaroon

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

        { location, identifier, caveats, signature }

        Error when the bytes are not a v2 macaroon (the library's text)