MCPcopy
hub / github.com/epicweb-dev/epic-stack / requireEmail

Function requireEmail

tests/mocks/utils.ts:37–41  ·  view source on GitHub ↗
(recipient: string)

Source from the content-addressed store, hash-verified

35}
36
37export async function requireEmail(recipient: string) {
38 const email = await readEmail(recipient)
39 if (!email) throw new Error(`Email to ${recipient} not found`)
40 return email
41}
42
43export async function readEmail(recipient: string) {
44 try {

Callers

nothing calls this directly

Calls 1

readEmailFunction · 0.85

Tested by

no test coverage detected