-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
enhancementNew feature or requestNew feature or request
Description
- design email templates (verification, reset password, ...)
- create firebase functions to catch email sending events
Function should be something like:
const functions = require('firebase-functions');
const admin = require('firebase-admin');
admin.initializeApp();
exports.customizeEmailVerificationEmail = functions.auth.emailAction('email-verification').onCreate((context) => {
const { email, url } = context.data;
// Customize the email subject
const subject = 'Verify Your Email Address';
// Customize the email body
const body = `
Hello,
Thank you for signing up with our app! To complete your registration, please verify your email address by clicking the link below:
${url}
If you did not request this email verification, please ignore this email.
Best regards,
Your App Team
`;
// Use the Firebase Admin SDK to send the customized email
return admin.auth().sendVerificationEmail(email, {
from: 'no-reply@your-app.com',
subject: subject,
body: body,
});
});Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request