- 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
18 lines
593 B
TypeScript
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>
|
|
`;
|
|
};
|