To resolve this, you can extend the Session interface in Next-Auth: declare module "next-auth" { interface Session { user: { accessToken: string; tokenExpiration: number; idToken: string; } & DefaultSession["user"]; error: string; } }