MCPcopy Index your code
hub / github.com/DeepNotesApp/DeepNotes / hashUserEmail

Function hashUserEmail

packages/@deeplib/data/src/emails.ts:38–49  ·  view source on GitHub ↗
(email: string)

Source from the content-addressed store, hash-verified

36}
37
38export function hashUserEmail(email: string) {
39 return cryptoJsWordArrayToUint8Array(
40 CryptoJS.HmacSHA256(
41 (process.env.EMAIL_CASE_SENSITIVITY_EXCEPTIONS ?? '')
42 .split(';')
43 .includes(email)
44 ? email
45 : email.toLowerCase(),
46 process.env.USER_EMAIL_SECRET!,
47 ),
48 );
49}

Callers 8

index.tsFile · 0.90
registerUserFunction · 0.90
changeEmailStep2Function · 0.90
registerFunction · 0.90
resendVerificationEmailFunction · 0.90
requestFunction · 0.90
loginFunction · 0.90
handleCommandFunction · 0.90

Calls 1

Tested by

no test coverage detected