Skip to content

VerificationSession

new VerificationSession(sessionCreationData, verifierUrl?): VerificationSession

Not meant to be used directly, use initVerificationSession instead.

SessionCreationData

URL

VerificationSession

launchAgeInYearsVerification(divId, config?): Promise<void>

Starts an age-in-years verification flow using an iframe-based UI. Returns only the computed integer age — the raw birth date is never exposed.

string

CSS ID for a <div> that this function will use as the container for the iframe.

LaunchConfig = {}

An optional configuration object.

Promise<void>


launchMdlVerification(divId, namespaces, config?): Promise<void>

Starts the verification flow for an mDL using an iframe-based UI.

string

CSS ID for a <div> that this function will use as the container for the iframe.

Record<string, readonly string[]>

A map of mDoc namespaces to request.

LaunchConfig = {}

An optional configuration object.

Promise<void>