import { DefaultSession, DefaultUser, AuthOptions } from "next-auth"; import { DefaultJWT } from "next-auth/jwt"; declare module "next-auth" { interface Session { user: DefaultSession["user"] & { id: string; tenantId?: string; }; accessToken?: string; } interface User extends DefaultUser { tenantId?: string; } // Re-export AuthOptions so it can be imported export { AuthOptions }; } declare module "next-auth/jwt" { interface JWT extends DefaultJWT { accessToken?: string; tenantId?: string; } }