Initial commit for wedding-planner MVP
This commit is contained in:
20
types/next-auth.d.ts
vendored
Normal file
20
types/next-auth.d.ts
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
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";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user