I currently working on a NextJS Auth0 proof of concept. I’ve been having been making a lot of progress thus far, however, I have stated to get an error that I cannot find any reference to. I’m current using the @auth0/nextjs-auth0 npm package.
I had exactly the same problem. After I went through the nextjs tutorial everything worked fine. And then I encountered the same error (I can not tell if I have something installed on my system).
On my machine (Fedora 37) it was an ipv6 problem. As a workaround I use the following line in next.config.js:
const dns = require("dns");
dns.setDefaultResultOrder("ipv4first");
While a GET request to the discover URL (https://<mydomain>/.well-known/openid-configuration) over ipV4 worked (returned a 403 but that was expected). The same request over ipv6 encountered a timeout.
Maybe I will open an issue on github, but not exactly sure if this is the right place.
Maybe I will open an issue on github, but not exactly sure if this is the right place.