import NextAuth from "next-auth";
import { User as IUser } from "@repo/db";

declare module "next-auth" {
	/**
	 * Returned by `useSession`, `getSession` and received as a prop on the `SessionProvider` React Context
	 */
	interface Session {
		user: IUser;
	}
	type User = IUser;
}

declare module "next-auth/jwt" {
	interface JWT {
		uid: string;
		firstname: string;
		lastname: string;
		email: string;
	}
}
