Skip to content

Function: matchesAllowlist()

matchesAllowlist(email, patterns): boolean

True when email is allowed by ANY pattern in patterns. An empty (or missing) list allows nobody - the gate fails closed.

string

readonly string[] | undefined

boolean