24 lines
316 B
TypeScript
24 lines
316 B
TypeScript
import "next-auth";
|
|
|
|
declare module "next-auth" {
|
|
interface User {
|
|
id: string;
|
|
}
|
|
|
|
interface Session {
|
|
user: {
|
|
id: string;
|
|
email?: string | null;
|
|
name?: string | null;
|
|
image?: string | null;
|
|
};
|
|
}
|
|
}
|
|
|
|
declare module "next-auth/jwt" {
|
|
interface JWT {
|
|
id: string;
|
|
}
|
|
}
|
|
|