@proconnect-gouv/proconnect.email
v1.0.1
Published
> Email templates for the ProConnect identity platform.
Readme
📧 ProConnect Email Templates
Email templates for the ProConnect identity platform.
📦 Installation
npm install @proconnect-gouv/proconnect.email📧 Usage
import { DeleteFreeTotpMail } from "@proconnect-gouv/proconnect.email";
const transporter = nodemailer.createTransporter({
host: "smtp.example.com",
port: 587,
secure: false,
auth: {
user: "[email protected]",
pass: "password",
},
});
// Send email with template
const info = await transporter.sendMail({
from: "[email protected]",
to: "[email protected]",
subject: "[ProConnect] Delete free TOTP",
html: DeleteFreeTotpMail({
baseurl: "https://identite.proconnect.gouv.fr",
given_name: "Marie",
family_name: "Dupont",
support_email: "[email protected]",
}),
});📦 Available Templates
| Template | Purpose |
| ---------------------------------- | ----------------------------- |
| Add2fa | 2FA activation confirmation |
| AddAccessKey | API key creation notification |
| Delete2faProtection | 2FA removal warning |
| DeleteAccessKey | API key deletion notice |
| DeleteAccount | Account deletion confirmation |
| DeleteFreeTotpMail | TOTP removal notification |
| MagicLink | Passwordless login link |
| OfficialContactEmailVerification | Official contact verification |
| ResetPassword | Password reset instructions |
| UpdatePersonalDataMail | Profile update summary |
| VerifyEmail | Email address verification |
| Welcome | New user onboarding |
🤝 Contributing
See CONTRIBUTING.md for development guidelines.
