Skip to content

A desktop coding agent with free access to frontier models.

TypeScript
173 B
Raw Blame
export function getRequiredUserEmail(user: { id: string; email?: string | null }) {
  const email = user.email?.trim()
  if (!email) {
    return null
  }

  return email
}