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
This commit is contained in:
17
services/auth/templates/verification.email.ts
Normal file
17
services/auth/templates/verification.email.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
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>
|
||||
`;
|
||||
};
|
||||
Reference in New Issue
Block a user