import type { DefaultSession } from "next-auth"

declare module "next-auth" {
  interface Session {
    user: {
      role: string
      clubId: string
    } & DefaultSession["user"]
    error?: string
  }

  interface User {
    role: string
    clubId: string
    accessToken: string
    refreshToken: string
    expiresAt: number
  }
}

declare module "next-auth/jwt" {
  interface JWT {
    role?: string
    clubId?: string
    accessToken?: string
    refreshToken?: string
    expiresAt?: number
    error?: string
  }
}
