import "next-auth";

declare module "next-auth" {
  interface User {
    accessToken?: string;
    refreshToken?: string;
    expires?: number;
    accessTokenExpiry?: number;
  }

  interface Session {
    accessToken?: string;
    refreshToken?: string;
    expires?: number;
    error?: string;
  }
}

declare module "next-auth/jwt" {
  interface JWT {
    accessToken?: string;
    refreshToken?: string;
    expires?: number;
    accessTokenExpiry?: number;
    error?: string;
  }
}
