Files
padmaja/types/next-auth.d.ts
2026-01-17 14:17:42 +05:30

26 lines
574 B
TypeScript

import NextAuth from 'next-auth'
declare module 'next-auth' {
interface Session {
user: {
id: string
email: string
name?: string | null
image?: string | null
role: 'ADMIN' | 'MEMBER' | 'WHOLESALER' | 'PART_TIME' | 'CUSTOMER'
referralCode: string
}
}
interface User {
role: 'ADMIN' | 'MEMBER' | 'WHOLESALER' | 'PART_TIME' | 'CUSTOMER'
referralCode: string
}
}
declare module 'next-auth/jwt' {
interface JWT {
role: 'ADMIN' | 'MEMBER' | 'WHOLESALER' | 'PART_TIME' | 'CUSTOMER'
referralCode: string
}
}