feat: Implement admin dashboard with user management, statistics, and role-based access control.

This commit is contained in:
Yusuf İpek
2026-02-20 15:17:32 +03:00
parent 1bb1c8e574
commit 83eeffe5c0
10 changed files with 685 additions and 5 deletions
+20
View File
@@ -0,0 +1,20 @@
import NextAuth, { type DefaultSession } from 'next-auth';
declare module 'next-auth' {
interface Session {
user: {
id: string;
isAdmin: boolean;
} & DefaultSession['user'];
}
interface User {
isAdmin?: boolean;
}
}
declare module 'next-auth/jwt' {
interface JWT {
isAdmin?: boolean;
}
}