/** The authenticated principal carried in the tRPC context. Kept dependency-free
 * so the admin/portal apps can import the router's types without pulling in
 * server code. `tenantId` is set when the login belongs to a tenant party. */
export interface AuthUser {
  id: string;
  email: string;
  name: string;
  tenantId: string | null;
  /** Set until the holder replaces a password somebody else chose for them. */
  mustChangePassword: boolean;
  roles: string[];
  permissions: string[];
}
