Update application code and dependencies

This commit is contained in:
root
2026-05-06 17:22:50 +08:00
parent efc8f4bf78
commit a3ee04379d
60 changed files with 6793 additions and 860 deletions
+21
View File
@@ -0,0 +1,21 @@
import { DefaultSession } from "next-auth"
declare module "next-auth" {
interface Session {
user?: {
id: string
role: string
} & DefaultSession["user"]
}
interface User {
id: string
role: string
}
}
declare module "next-auth/jwt" {
interface JWT {
role?: string
}
}