first user setup and login

This commit is contained in:
2025-06-23 13:27:45 -04:00
parent bbe5eb0ccd
commit 12148e642d
13 changed files with 216 additions and 80 deletions

23
types/next-auth.d.ts vendored
View File

@@ -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"
}
}