iya-sts
    Preparing search index...

    Variable makeOffer

    makeOffer: (
        req: any,
        ask: {
            byReference?: boolean;
            configurationIds: string[];
            mode: string;
            session?: any;
            signingAlg?: string;
            user?: any;
            wallet?: string;
        },
    ) => {
        built: {
            expires: number;
            issuerState: string;
            mode: string;
            offer: Record<string, any>;
            preAuthorizedCode: string;
            txCode: string;
        };
        byReference: any;
        byValue: any;
    } = ...

    Type Declaration

      • (
            req: any,
            ask: {
                byReference?: boolean;
                configurationIds: string[];
                mode: string;
                session?: any;
                signingAlg?: string;
                user?: any;
                wallet?: string;
            },
        ): {
            built: {
                expires: number;
                issuerState: string;
                mode: string;
                offer: Record<string, any>;
                preAuthorizedCode: string;
                txCode: string;
            };
            byReference: any;
            byValue: any;
        }
      • Makes a Credential Offer — for the portal's account API — and the forms it is handed to a wallet in.

        Parameters

        • req: any

          the request (its realm and its base URL)

        • ask: {
              byReference?: boolean;
              configurationIds: string[];
              mode: string;
              session?: any;
              signingAlg?: string;
              user?: any;
              wallet?: string;
          }

          configurationIds, mode (same-device, cross-device or deferred), user (whom a pre-authorized offer is for), session (the sign-on session the offer is made on, presented over CAEP), byReference (also store it and answer its reference) and wallet (the wallet URL a link goes to, '' for none) and signingAlg (the algorithm the credential is signed with, '' for the configured one)

        Returns {
            built: {
                expires: number;
                issuerState: string;
                mode: string;
                offer: Record<string, any>;
                preAuthorizedCode: string;
                txCode: string;
            };
            byReference: any;
            byValue: any;
        }

        { built, byValue, byReference }: what buildCredentialOffer() built, and for each form its query, its openid-credential-offer:// URI and its wallet link (byReference also its credentialOfferUri, and null where it was not asked for)