diff --git a/nextauth.d.ts b/nextauth.d.ts new file mode 100644 index 0000000000..052e4d4a7c --- /dev/null +++ b/nextauth.d.ts @@ -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"]; + } +}