Files
rxminder/services/auth/templates/verification.email.ts
William Valentin 811339cea2 refactor: migrate services from app.config to unified config
- Update email verification template to use unifiedConfig
- Update ProductionDatabaseStrategy to use databaseConfig from unified config
- Update mailgun service to use unifiedConfig for baseUrl
- Provides consistent configuration access across all services
- Part of migration to single source of truth configuration system
2025-09-08 20:39:03 -07:00

18 lines
593 B
TypeScript

import { EmailVerificationToken } from '../auth.types';
import { unifiedConfig } from '../../../config/unified.config';
export const verificationEmailTemplate = (token: EmailVerificationToken) => {
const verificationLink = `${unifiedConfig.app.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>
`;
};