VerificationSession
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new VerificationSession(
sessionCreationData,verifierUrl?):VerificationSession
Not meant to be used directly, use initVerificationSession instead.
Parameters
Section titled “Parameters”sessionCreationData
Section titled “sessionCreationData”verifierUrl?
Section titled “verifierUrl?”URL
Returns
Section titled “Returns”VerificationSession
Methods
Section titled “Methods”launchAgeInYearsVerification()
Section titled “launchAgeInYearsVerification()”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.
Parameters
Section titled “Parameters”string
CSS ID for a <div> that this function will use as the container for the iframe.
config?
Section titled “config?”LaunchConfig = {}
An optional configuration object.
Returns
Section titled “Returns”Promise<void>
launchMdlVerification()
Section titled “launchMdlVerification()”launchMdlVerification(
divId,namespaces,config?):Promise<void>
Starts the verification flow for an mDL using an iframe-based UI.
Parameters
Section titled “Parameters”string
CSS ID for a <div> that this function will use as the container for the iframe.
namespaces
Section titled “namespaces”Record<string, readonly string[]>
A map of mDoc namespaces to request.
config?
Section titled “config?”LaunchConfig = {}
An optional configuration object.
Returns
Section titled “Returns”Promise<void>