first commit

This commit is contained in:
AyrisAI
2026-05-14 01:57:52 +03:00
parent 863a32cd35
commit 4a9196f483
47 changed files with 12043 additions and 102 deletions

27
types/next-auth.d.ts vendored Normal file
View File

@@ -0,0 +1,27 @@
import NextAuth from "next-auth";
declare module "next-auth" {
interface Session {
user: {
id: string;
name: string;
email: string;
image?: string;
role: string; // "SUPER_ADMIN" | "DOMAIN_ADMIN"
domains: string[]; // ["*"] or ["domain1.com", "domain2.com"]
};
}
interface User {
role?: string;
domains?: string[];
}
}
declare module "next-auth/jwt" {
interface JWT {
id?: string;
role?: string;
domains?: string[];
}
}