feat: add nexthauth.d.ts to have the DefaultSession info available

This commit is contained in:
Pablo Lara
2024-08-27 17:05:09 +02:00
parent 06d05ec860
commit 1985b16824
+14
View File
@@ -0,0 +1,14 @@
import { DefaultSession } from "next-auth";
declare module "next-auth" {
interface Session {
user: {
id: string;
firstName: string;
companyName: string;
email: string;
role: string;
image?: string;
} & DefaultSession["user"];
}
}