iya-sts
    Preparing search index...

    Variable verify

    verify: (token: unknown, ctx: MdocContext) => Promise<any> = ...

    Type Declaration

      • (token: unknown, ctx: MdocContext): Promise<any>
      • Verifies one mdoc presentation: a base64url DeviceResponse.

        Parameters

        • token: unknown

          the presentation from the vp_token

        • ctx: MdocContext

          the request's values (see MdocContext)

        Returns Promise<any>

        { ok, checks, claims, disclosed, extraDisclosed, doctype, issuerCertificatePem, anchorCertificatePem, statusReference, credentialJwt, holderJwk }. credentialJwt is the base64url of issuerAuth's payload once that signature verifies, which is how the issued register keys an mdoc. holderJwk is the device key once the device signature verifies, and is left unset when it does not.