Files
edubox/server/types/next-auth.d.ts
T
2026-06-06 19:55:41 +00:00

27 lines
402 B
TypeScript

import "next-auth";
declare module "next-auth" {
interface Session {
user: {
id: string;
email: string;
role: string;
establishmentId?: string;
};
}
interface User {
id: string;
email: string;
role: string;
establishmentId?: string;
}
}
declare module "next-auth/jwt" {
interface JWT {
role?: string;
establishmentId?: string;
}
}