Update application code and dependencies
This commit is contained in:
Vendored
+21
@@ -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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user