Initial commit
This commit is contained in:
23
types/next-auth.d.ts
vendored
Normal file
23
types/next-auth.d.ts
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
import 'next-auth'
|
||||
import 'next-auth/jwt'
|
||||
|
||||
declare module 'next-auth' {
|
||||
interface Session {
|
||||
user: {
|
||||
id: string
|
||||
email: string
|
||||
name: string
|
||||
role: string
|
||||
}
|
||||
}
|
||||
interface User {
|
||||
role: string
|
||||
}
|
||||
}
|
||||
|
||||
declare module 'next-auth/jwt' {
|
||||
interface JWT {
|
||||
id: string
|
||||
role: string
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user