mirror of
https://github.com/prowler-cloud/prowler.git
synced 2025-12-19 05:17:47 +00:00
29 lines
685 B
TypeScript
29 lines
685 B
TypeScript
import type { DefaultSession, User as NextAuthUser } 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;
|
|
}
|
|
|
|
type SessionUser = NonNullable<DefaultSession["user"]> & {
|
|
companyName?: string;
|
|
dateJoined?: string;
|
|
permissions: RolePermissionAttributes;
|
|
};
|
|
|
|
interface Session extends DefaultSession {
|
|
user?: SessionUser;
|
|
userId?: string;
|
|
tenantId?: string;
|
|
accessToken?: string;
|
|
refreshToken?: string;
|
|
error?: string;
|
|
}
|
|
}
|