1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
interface FetchVerificationEmailHtmlParams {
email: string;
token: string;
reVerifying?: boolean;
}
export function fetchConfirmationHtml({ email, token, reVerifying }: FetchVerificationEmailHtmlParams) {
const confirmationLink = `https://petemillspaugh.com/make-it-stick/email-confirmation?email=${email}&token=${token}`;
const html = `
<p>
${reVerifying ? "Looks like your verification link expired." : ""}
<a href="${confirmationLink}">Click here to confirm your subscription</a>.
</p>
`;
return html;
}
Val Town is a social website to write and deploy JavaScript.
Build APIs and schedule functions from your browser.
Comments
Nobody has commented on this val yet: be the first!
December 3, 2023