export interface User { id: number; email: string; password?: string; // Should be handled securely, not sent to client name: string; } // Augment the default NextAuth session and user types declare module 'next-auth' { interface Session { user: { id: string; } & DefaultSession['user']; } interface User { id: string; } }