23 lines
372 B
TypeScript
23 lines
372 B
TypeScript
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;
|
|
}
|
|
}
|