first user setup and login
This commit is contained in:
23
types/next-auth.d.ts
vendored
23
types/next-auth.d.ts
vendored
@@ -1,20 +1,21 @@
|
||||
import NextAuth from "next-auth";
|
||||
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";
|
||||
};
|
||||
id: string
|
||||
email: string
|
||||
role: "COUPLE" | "PLANNER" | "GUEST"
|
||||
}
|
||||
}
|
||||
|
||||
interface User {
|
||||
id: string
|
||||
role: "COUPLE" | "PLANNER" | "GUEST"
|
||||
}
|
||||
|
||||
interface JWT {
|
||||
role: "COUPLE" | "PLANNER" | "GUEST";
|
||||
id: string
|
||||
role: "COUPLE" | "PLANNER" | "GUEST"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user