Files
rxminder/services/auth/templates/verification.email.ts
William Valentin e48adbcb00 Initial commit: Complete NodeJS-native setup
- 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
2025-09-06 01:42:48 -07:00

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>
`;
};