IO Wallet SDK
    Preparing search index...

    Interface ParseCredentialRequestOptions

    Input options for parsing a credential request.

    interface ParseCredentialRequestOptions {
        callbacks: Pick<CallbackContext, "hash">;
        config: IoWalletSdkConfig;
        credentialRequest:
            | {
                credential_configuration_id?: string;
                credential_identifier?: string;
                proofs: { jwt: [string, ...string[]] };
                transaction_id?: string;
            }
            | {
                credential_configuration_id?: string;
                credential_identifier?: string;
                proof: { jwt: string; proof_type: "jwt" };
                transaction_id?: string;
            };
        expected?: ParseCredentialRequestExpectedValues;
        grantType?: GrantType;
        headers: Headers;
        isDeferredFlow?: boolean;
    }
    Index

    Properties

    callbacks: Pick<CallbackContext, "hash">

    Callback functions required to calculate proof JWK thumbprints.

    config: IoWalletSdkConfig

    SDK config used to route parsing logic by IT-Wallet specification version.

    credentialRequest:
        | {
            credential_configuration_id?: string;
            credential_identifier?: string;
            proofs: { jwt: [string, ...string[]] };
            transaction_id?: string;
        }
        | {
            credential_configuration_id?: string;
            credential_identifier?: string;
            proof: { jwt: string; proof_type: "jwt" };
            transaction_id?: string;
        }

    Credential request payload to validate and parse.

    Optional expected values for semantic checks.

    grantType?: GrantType

    Grant type used to validate iss requirements in proof JWT payloads.

    headers: Headers

    HTTP headers of the credential request, used to extract the DPoP proof.

    isDeferredFlow?: boolean

    Whether the request is expected to be part of deferred issuance flow.