initial commit - code moved to separate repo
This commit is contained in:
31
next-auth.d.ts
vendored
Normal file
31
next-auth.d.ts
vendored
Normal 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;
|
||||
// }
|
||||
// }
|
Reference in New Issue
Block a user