Files
wedding-planner/types/next-auth.d.ts

21 lines
341 B
TypeScript

import NextAuth from "next-auth";
declare module "next-auth" {
interface User {
id: string;
role: "COUPLE" | "PLANNER" | "GUEST";
}
interface Session {
user: {
id: string;
email: string;
role: "COUPLE" | "PLANNER" | "GUEST";
};
}
interface JWT {
role: "COUPLE" | "PLANNER" | "GUEST";
}
}