initial commit - code moved to separate repo

This commit is contained in:
Dobromir Popov
2024-02-22 04:19:38 +02:00
commit 560d503219
240 changed files with 105125 additions and 0 deletions

31
next-auth.d.ts vendored Normal file
View File

@ -0,0 +1,31 @@
// import { Role } from "@prisma/client";
// import { DefaultSession } from "next-auth";
// import { JWT } from "next-auth/jwt";
// Read more at: https://next-auth.js.org/getting-started/typescript#module-augmentation
declare module "next-auth/jwt" {
interface JWT {
/** The user's role. */
role?: Role;
userRole?: "admin"
}
}
// declare module "next-auth" {
// /**
// * Returned by `useSession`, `getSession` and received as a prop on the
// * `SessionProvider` React Context and trpc context
// */
// interface Session {
// user?: {
// role?: Role;
// } & DefaultSession["user"];
// }
// /** Passed as a parameter to the `jwt` callback */
// interface User {
// role?: Role;
// }
// }