Verifying External Email Addresses
Ensuring that the user owns an external email address is a critical step in setting up an Email Mask to forward to that address.
Sending the One-Time Passcode
const emailMaskId: string = emailMask.id // Get the Email Mask from the `provisionEmailMask` method
const emailAddress: string // The email address must match the one passed in as the `realAddress` property of `provisionEmailMask`
try {
await emailClient.verifyExternalEmailAddress({
emailMaskId: emailMaskId,
emailAddress: emailAddress,
})
// At this point, the method should return `undefined`
} catch (e) {
// Handle/notify user of errors
}// To be added// To be addedVerifying the One-Time Passcode
Last updated