24 lines
465 B
TypeScript
24 lines
465 B
TypeScript
import { DefaultSession, DefaultUser } from "next-auth";
|
|
import { DefaultJWT } from "next-auth/jwt";
|
|
|
|
declare module "next-auth" {
|
|
interface Session {
|
|
user: DefaultSession["user"] & {
|
|
id: string;
|
|
tenantId?: string;
|
|
};
|
|
accessToken?: string;
|
|
}
|
|
|
|
interface User extends DefaultUser {
|
|
tenantId?: string;
|
|
}
|
|
}
|
|
|
|
declare module "next-auth/jwt" {
|
|
interface JWT extends DefaultJWT {
|
|
accessToken?: string;
|
|
tenantId?: string;
|
|
}
|
|
}
|