import { DefaultSession } from "next-auth";

declare module "next-auth" {
  interface Session {
    accessToken?: string;
    user: {
      id: string|undefined;
      whmcsId: number|undefined;
    } & DefaultSession["user"];
  }
  
  interface User {
    token?: string;
    whmcsId?: number;
  }
}

declare module "next-auth/jwt" {
  interface JWT {
    accessToken?: string;
    userId?: string;
    whmcsId?: number;
  }
}
