UMIS SDK
    Preparing search index...

    Function createCredentialOffer

    • A credential offer for the pre-authorized code flow (OpenID4VCI 1.0 section 4.1.1): the issuer, the credential configurations on offer and the pre-authorized code, with a transaction code description when the holder must enter a code that reaches them by another channel. The issuer is checked like any issuer identifier (an https address without query or fragment, http for a loopback host); configuration ids must be unique.

      The offer is a value. The code behind preAuthorizedCode, its lifetime, its single use and the transaction code itself are the issuing service's to keep.

      Parameters

      • i: {
            configurationIds: string[];
            credentialIssuer: string;
            preAuthorizedCode: string;
            txCode?: {
                description?: string;
                inputMode?: "numeric" | "text";
                length: number;
            };
        }

      Returns CredentialOffer