iya-sts
    Preparing search index...

    Variable answerDcApi

    answerDcApi: (
        record: any,
        response: unknown,
        origin: string,
    ) => Promise<{ errorCode: any; ok: boolean; status: number; why: string }> = ...

    Type Declaration

      • (
            record: any,
            response: unknown,
            origin: string,
        ): Promise<{ errorCode: any; ok: boolean; status: number; why: string }>
      • Handles a Digital Credentials API answer: decrypts, verifies with origin:<origin> as the audience, and writes the verdict and sign-in outcome onto the transaction, once.

        Parameters

        • record: any

          the transaction

        • response: unknown

          the DigitalCredential, as JSON

        • origin: string

          this service's origin

        Returns Promise<{ errorCode: any; ok: boolean; status: number; why: string }>

        { ok, status, errorCode, why }