- Migrated from Python pre-commit to NodeJS-native solution - Reorganized documentation structure - Set up Husky + lint-staged for efficient pre-commit hooks - Fixed Dockerfile healthcheck issue - Added comprehensive documentation index
18 lines
582 B
TypeScript
18 lines
582 B
TypeScript
import { EmailVerificationToken } from '../auth.types';
|
|
|
|
export const verificationEmailTemplate = (token: EmailVerificationToken) => {
|
|
const baseUrl = process.env.APP_BASE_URL || 'http://localhost:5173';
|
|
const verificationLink = `${baseUrl}/verify-email?token=${token.token}`;
|
|
|
|
return `
|
|
<html>
|
|
<body>
|
|
<h1>Email Verification</h1>
|
|
<p>Please verify your email address by clicking the link below:</p>
|
|
<p><a href="${verificationLink}">${verificationLink}</a></p>
|
|
<p>This link will expire in 24 hours.</p>
|
|
</body>
|
|
</html>
|
|
`;
|
|
};
|