Skip to main content
You can enhance your user experience by customizing the verification email template. This guide explains how to implement a custom email template for the sign-up process.

Implementation

To use a custom email template, pass an options object as the second argument to the requestSignUpEmailCode function. This object should contain an html property with your custom HTML string.

Key Points:

  1. Pass { html: string } as the second argument to requestSignUpEmailCode.
  2. In your HTML string, use the literal {code} where you want the verification code to appear.
  3. The verification server will automatically replace {code} with the actual verification code.

Example

Here’s an example of how to implement a custom verification email: