Options for extracting PIN from email message.

interface ExtractOptions {
    checkTo?: boolean;
    regex?: RegExp;
    useHtml?: boolean;
    useSubject?: boolean;
    useText?: boolean;
}

Properties

checkTo?: boolean

Whether to check To header contains requesting email address.

true

regex?: RegExp

Regular Expression to extract PIN into capture group 1.

Accepting any 6-digit token.

useHtml?: boolean

Whether to extract PIN from email HTML.

false

useSubject?: boolean

Whether to extract PIN from email subject.

true

useText?: boolean

Whether to extract PIN from email text.

true