Skip to content

armgit / TREK

Public Imported from GitHub
0

The most complete open-source travel planner: real-time collaboration, bookings, budgets, packing lists, journals, offline PWA, SSO and an AI-ready MCP server, with planet-wide place search and routing built in.

694 B
Raw Blame
/**
 * The shared account every visitor of a demo instance signs in as.
 *
 * Both sides ask the same question: the server refuses the writes this
 * account may not make, and the client shows the same sections under a demo
 * lock. `[email protected]` is the address the account had before the rename, so
 * an instance upgraded in place still treats it as the demo account.
 */
export const DEMO_ACCOUNT_EMAILS: readonly string[] = ['[email protected]', '[email protected]'];

/** Whether this address is the demo account's. Instance demo mode is asked apart. */
export function isDemoAccountEmail(email: string | null | undefined): boolean {
  return !!email && DEMO_ACCOUNT_EMAILS.includes(email);
}