Initial SeConectai briefing system
This commit is contained in:
Vendored
+22
@@ -0,0 +1,22 @@
|
||||
import type { Papel } from "@prisma/client";
|
||||
import type { DefaultSession } from "next-auth";
|
||||
|
||||
declare module "next-auth" {
|
||||
interface User {
|
||||
papel: Papel;
|
||||
}
|
||||
|
||||
interface Session {
|
||||
user: {
|
||||
id: string;
|
||||
papel: Papel;
|
||||
} & DefaultSession["user"];
|
||||
}
|
||||
}
|
||||
|
||||
declare module "next-auth/jwt" {
|
||||
interface JWT {
|
||||
userId: string;
|
||||
papel: Papel;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user