Files
speckle-server/packages/frontend-2/lib/auth/helpers/checkBlockedDomain.ts
T
2025-05-26 14:39:32 +02:00

9 lines
217 B
TypeScript

import { blockedDomains } from '@speckle/shared'
export const checkIfEmailIsBlocked = (email?: string) => {
if (!email) return false
const domain = email.split('@')[1]
return blockedDomains.includes(domain)
}