kyc user and upload partial update encrypt nik and picture

This commit is contained in:
2026-04-27 21:48:24 +07:00
parent b31fe675ae
commit a92b4a8fd9
51 changed files with 5180 additions and 452 deletions
+12
View File
@@ -0,0 +1,12 @@
/** Daftar email admin (comma-separated, lowercase). */
function adminEmails(): string[] {
return (process.env.ADMIN_EMAILS ?? "")
.split(",")
.map((e) => e.trim().toLowerCase())
.filter(Boolean);
}
export function isAdminEmail(email: string | null | undefined): boolean {
if (!email) return false;
return adminEmails().includes(email.toLowerCase());
}