* chore: Add guest email blacklist * types * Added check to only log when we've removed one * feat: add verification logic * chore: use base exftract email * Added toLowerCase for guest email checks --------- Co-authored-by: Udit Takkar <udit222001@gmail.com>
7 lines
234 B
TypeScript
7 lines
234 B
TypeScript
// Function to extract base email
|
|
export const extractBaseEmail = (email: string): string => {
|
|
const [localPart, domain] = email.split("@");
|
|
const baseLocalPart = localPart.split("+")[0];
|
|
return `${baseLocalPart}@${domain}`;
|
|
};
|