Problem with callback data - Invalid authorization code - invalid_grant

I set up a callback route in the dashboard, and it is being accessed after the authorization; however, it is returning with a code different from the cookie, resulting in an “Invalid authorization code” error with status 400. I’ve logged the request, and it arrives but throws the error mentioned earlier. I’m not sure what else to do since the clientID, Secret, and URL were literally copied from the Auth0 dashboard, with no success.

Note: The login page, using OAuth, opens and performs the login, but it doesn’t return the correct data in the callback.

I just tried to create a new app, this time using Express. The previous app I mentioned was with Next.js. On localhost, it worked correctly, but when I use my HTTPS domain (which works normally), it never works. This time, it gives an error before the login page. Could it be an issue with the domain value? It shouldn’t be, as I copy it directly from the browser.