Files
nextgo/types/next-auth.d.ts
Beyhan Oğur 9eb7aea821 first commit
2026-04-26 22:15:25 +03:00

28 lines
503 B
TypeScript

import type { DefaultSession } from 'next-auth'
declare module 'next-auth' {
interface Session {
accessToken?: string
refreshToken?: string
error?: string
user: DefaultSession['user'] & {
id?: string
username?: string
}
}
}
declare module 'next-auth/jwt' {
interface JWT {
accessToken?: string
refreshToken?: string
accessTokenExpires?: number
error?: string
user?: {
id?: string
email?: string
username?: string
}
}
}