import NextAuth, { DefaultSession } from "next-auth" declare module "next-auth" { interface Session { user: { id: string username?: string } & DefaultSession["user"] } interface User { username?: string | null } }