* init: endpoint for fetching verified emails * fix: enable custom reply to email in frontend * init endpoint to add verified emails * add verified emails option for platform in frontend * fixup: move useGetVerifiedEmails hook to correct folder * update atoms module * fixup: teamId should be string * add methond to fetch team member emails * update logic to fetch and add emails * fixup: append client id with email * fixup: pass teamId for fetching verified emails * fixup: simplify check for existing emails * fix: cleanup comments * fix: implement code rabbit feedback * fix: add translations * fixup: update transaltions * fix: update logic for addVerifiedEmail * add changesets * fix: implement PR feedback
5 lines
178 B
TypeScript
5 lines
178 B
TypeScript
export function appendClientIdToEmail(email: string, clientId: string): string {
|
|
const [localPart, domain] = email.split("@");
|
|
return `${localPart}+${clientId}@${domain}`;
|
|
}
|