24 lines
323 B
TypeScript
24 lines
323 B
TypeScript
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
|
|
}
|
|
}
|