Initial commit

This commit is contained in:
Jan
2026-04-08 16:30:44 +02:00
commit f9b17e9964
65 changed files with 7574 additions and 0 deletions

32
src/types/next-auth.d.ts vendored Normal file
View File

@@ -0,0 +1,32 @@
import type { ApprovalType, Role } from "@prisma/client";
import type { DefaultSession } from "next-auth";
declare module "next-auth" {
interface Session {
user: {
id: string;
username: string;
role: Role;
workingGroupId: string | null;
approvalPreference: ApprovalType | null;
} & DefaultSession["user"];
}
interface User {
id: string;
username: string;
role: Role;
workingGroupId: string | null;
approvalPreference: ApprovalType | null;
}
}
declare module "next-auth/jwt" {
interface JWT {
id?: string;
username?: string;
role?: Role;
workingGroupId?: string | null;
approvalPreference?: ApprovalType | null;
}
}