Wallet API
Configure Custom Verification Email (Optional)
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:
- Pass
{ html: string }
as the second argument torequestSignUpEmailCode
. - In your HTML string, use the literal
{code}
where you want the verification code to appear. - 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: