2025-07-17 11:12:35 +00:00
|
|
|
|
|
|
|
|
export interface User {
|
|
|
|
|
id: number;
|
|
|
|
|
email: string;
|
|
|
|
|
password?: string; // Should be handled securely, not sent to client
|
|
|
|
|
name: string;
|
|
|
|
|
}
|
2025-07-17 11:34:27 +00:00
|
|
|
|
|
|
|
|
// Augment the default NextAuth session and user types
|
|
|
|
|
declare module 'next-auth' {
|
|
|
|
|
interface Session {
|
|
|
|
|
user: {
|
|
|
|
|
id: string;
|
|
|
|
|
} & DefaultSession['user'];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
interface User {
|
|
|
|
|
id: string;
|
|
|
|
|
}
|
|
|
|
|
}
|