mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-04-17 01:57:43 +00:00
28 lines
633 B
TypeScript
28 lines
633 B
TypeScript
import { DefaultSession } from "next-auth";
|
|
|
|
import { RolePermissionAttributes } from "./types/users";
|
|
|
|
declare module "next-auth" {
|
|
interface User extends NextAuthUser {
|
|
name: string;
|
|
email: string;
|
|
company?: string;
|
|
dateJoined: string;
|
|
permissions?: RolePermissionAttributes;
|
|
}
|
|
|
|
interface Session extends DefaultSession {
|
|
user: {
|
|
name: string;
|
|
email: string;
|
|
companyName?: string;
|
|
dateJoined: string;
|
|
permissions: RolePermissionAttributes;
|
|
} & DefaultSession["user"];
|
|
userId: string;
|
|
tenantId: string;
|
|
accessToken: string;
|
|
refreshToken: string;
|
|
}
|
|
}
|