29 lines
464 B
TypeScript
29 lines
464 B
TypeScript
import { DefaultSession } from "next-auth";
|
|
|
|
declare module "next-auth" {
|
|
interface Session {
|
|
user: {
|
|
id: string;
|
|
teamId: string;
|
|
firstName: string;
|
|
lastName: string;
|
|
} & DefaultSession["user"];
|
|
}
|
|
|
|
interface User {
|
|
teamId: string;
|
|
firstName: string;
|
|
lastName: string;
|
|
}
|
|
}
|
|
|
|
declare module "next-auth/jwt" {
|
|
interface JWT {
|
|
id: string;
|
|
teamId: string;
|
|
firstName: string;
|
|
lastName: string;
|
|
}
|
|
}
|
|
|