Facing an issue with Next JS while login & logout

I am using Auth0 Next JS SDK in my brand new Next JS app. However, I am facing the below issue while signing in and signing out

Any idea how to resolve this ? below is my code on the index page

import { useUser } from "@auth0/nextjs-auth0";
import Link from "next/link";

function Home() {
  const { user } = useUser();
  return (
      {user ? (
          Welcome {user.name}!{" "}
          <Link href="/api/auth/logout">
      ) : (
        <Link href="/api/auth/login">

export default Home;

Hey there!

The most effective way for handling this type of issues is to create a GitHub issue in the SDK repo to have that addressed directly with the SDK maintainers. Once you have a link to it you can share it ehre so we can ping them. Thank you!

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.