import { DefaultSession } from "next-auth"

declare module "next-auth" {
  interface Session {
    user: {
      id: string
      roleIds: string[]
      roles: string[]
    } & DefaultSession["user"]
  }

  interface User {
    roleIds: string[]
    roles: string[]
  }
}

declare module "next-auth/jwt" {
  interface JWT {
    id: string
    roleIds: string[]
    roles: string[]
  }
}

