28 lines
382 B
TypeScript
28 lines
382 B
TypeScript
import 'next-auth'
|
|
|
|
declare module 'next-auth' {
|
|
interface Session {
|
|
user: {
|
|
id: string
|
|
email: string
|
|
name: string
|
|
role: 'USER' | 'ADMIN'
|
|
}
|
|
}
|
|
|
|
interface User {
|
|
id: string
|
|
email: string
|
|
name: string
|
|
role: 'USER' | 'ADMIN'
|
|
}
|
|
}
|
|
|
|
declare module 'next-auth/jwt' {
|
|
interface JWT {
|
|
id: string
|
|
role: 'USER' | 'ADMIN'
|
|
}
|
|
}
|
|
|