Skip to content

Email for professionals and teams

362 B
Raw Blame
import type { ReactNode } from "react";

export type AuthGuardMode = "protected" | "public";

export type AuthGuardProps = {
	children: ReactNode;
	mode?: AuthGuardMode;
	requireMailbox?: boolean;
	requireRole?: "admin";
	requirePrimary?: boolean;
	/** Public page that stays usable while signed in (adding another account). */
	allowAuthenticated?: boolean;
};