完整性更新
现在已经实现了大部分基础功能
This commit is contained in:
17
src/next-auth.d.ts
vendored
Normal file
17
src/next-auth.d.ts
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
import type { DefaultSession } from "next-auth"
|
||||
|
||||
declare module "next-auth" {
|
||||
interface Session {
|
||||
user: DefaultSession["user"] & {
|
||||
id: string
|
||||
role: string
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
declare module "next-auth/jwt" {
|
||||
interface JWT {
|
||||
id: string
|
||||
role: string
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user