first commit

This commit is contained in:
2026-01-17 14:17:42 +05:30
commit 0f194eb9e7
328 changed files with 73544 additions and 0 deletions

26
types/next-auth.d.ts vendored Normal file
View File

@@ -0,0 +1,26 @@
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
}
}