// import { Role } from "@prisma/client";
// import { DefaultSession } from "next-auth";
// import { JWT } from "next-auth/jwt";

// Read more at: https://next-auth.js.org/getting-started/typescript#module-augmentation

declare module "next-auth/jwt" {
  interface JWT {
    /** The user's role. */
    role?: Role;
    userRole?: "admin"
  }
}


// declare module "next-auth" {
//   /**
//    * Returned by `useSession`, `getSession` and received as a prop on the
//    * `SessionProvider` React Context and trpc context
//    */
//   interface Session {
//     user?: {
//       role?: Role;
//     } & DefaultSession["user"];
//   }

//   /** Passed as a parameter to the `jwt` callback */
//   interface User {
//     role?: Role;
//   }
// }