iya-sts
    Preparing search index...

    Variable buildCredentialOffer

    buildCredentialOffer: (
        req: any,
        configurationIds: string[],
        mode: string,
        options?: { user?: any },
    ) => {
        issuerState: string;
        mode: string;
        offer: Record<string, any>;
        preAuthorizedCode: string;
        txCode: string;
    } = ...

    Type Declaration

      • (
            req: any,
            configurationIds: string[],
            mode: string,
            options?: { user?: any },
        ): {
            issuerState: string;
            mode: string;
            offer: Record<string, any>;
            preAuthorizedCode: string;
            txCode: string;
        }
      • Builds a Credential Offer for one of the Appendix H use cases: same-device (authorization code and issuer state), cross-device (pre-authorized code and Transaction Code) or deferred.

        Parameters

        • req: any

          the request

        • configurationIds: string[]

          the configurations on offer

        • mode: string

          the use case

        • Optionaloptions: { user?: any }

          user, whom a pre-authorized offer is for

        Returns {
            issuerState: string;
            mode: string;
            offer: Record<string, any>;
            preAuthorizedCode: string;
            txCode: string;
        }

        { offer, issuerState, preAuthorizedCode, txCode, mode }