mirror of
https://github.com/hanzoai/calendar.git
synced 2026-09-24 22:42:24 +00:00
* 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 <[email protected]>
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}`;
|
|
};
|