// types/express-session.d.ts
// Copyright (C) 2026 Robert Colbert <rob.colbert@openplatform.us>
// All Rights Reserved

import { SessionData } from "express-session";
import { IUser } from "../models/user.js";

declare module "express-session" {
  interface SessionData {
    type?: string;
    user?: IUser | null;
    token?: string;
    captcha: {
      [key: string]: string;
      // add custom session vars here
    };
  }
}
