Running into the error below after going to auth/login.
500: INTERNAL_SERVER_ERRORCode: MIDDLEWARE_INVOCATION_FAILED
ID: iad1::hj95h-1744250879675-ad92b9621be1
Using Regular Web Application
import Link from “next/link”;
import { ArrowRight } from “lucide-react”;
import { auth0 } from “@/lib/auth0”;
export default async function Home() {
const session = await auth0.getSession();
if (!session) {
return (
Login to Dashboard
);
}
}
Hi @james29
Welcome to the Auth0 Community!
Thank you for posting the issue. Did you use our Next.js application quickstart while developing the application?-> https://auth0.com/docs/quickstart/webapp/nextjs/interactive
I’ve also noticed that you are importing the Link component. Please remember that you must use <a>
tags instead of the <Link>
component to ensure that the routing is not done client-side, as that may result in some unexpected behavior.
If the app is still not running after checking with quickstart, can you please open up a new issue in the Next.js-auth0 repository → GitHub · Where software is built. I will ping the repo owners to check your issue.
Thanks
Dawid