24 lines
314 B
TypeScript
24 lines
314 B
TypeScript
import "next-auth"
|
|
|
|
declare module "next-auth" {
|
|
interface Session {
|
|
user: {
|
|
id: string
|
|
email: string
|
|
name?: string | null
|
|
}
|
|
}
|
|
|
|
interface User {
|
|
id: string
|
|
email: string
|
|
name?: string | null
|
|
}
|
|
}
|
|
|
|
declare module "next-auth/jwt" {
|
|
interface JWT {
|
|
id: string
|
|
}
|
|
}
|