mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-07-23 20:42:02 +00:00
feat: add nexthauth.d.ts to have the DefaultSession info available
This commit is contained in:
Vendored
+14
@@ -0,0 +1,14 @@
|
||||
import { DefaultSession } from "next-auth";
|
||||
|
||||
declare module "next-auth" {
|
||||
interface Session {
|
||||
user: {
|
||||
id: string;
|
||||
firstName: string;
|
||||
companyName: string;
|
||||
email: string;
|
||||
role: string;
|
||||
image?: string;
|
||||
} & DefaultSession["user"];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user