How to login in a next js app with auth0? I followed the quickstart from the auth0 website and I am getting this error on the login page.
<a href="/api/auth/login">Login</a>
This is pages/api/[...auth0].js
import { handleAuth } from '@auth0/nextjs-auth0';
export default handleAuth();
I am getting this error on the login page.
and I am getting this in my terminal
OPError: expected 200 OK, got: 404 Not Found
at processResponse (/home/madhav/Documents/Web Development/freelancing/frontend-affilboost/node_modules/openid-client/lib/helpers/process_response.js:48:11)
at Function.discover (/home/madhav/Documents/Web Development/freelancing/frontend-affilboost/node_modules/openid-client/lib/issuer.js:252:22)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (internal/process/task_queues.js:93:5) {
error: 'expected 200 OK, got: 404 Not Found'
}
I am getting Failed to load resource, the server responded with code 500 in my browsers' console.
What am I doing wrong?

