Hello, I am trying to deploy my NextJs web app to Vercel, but for some reason anytime I try to login I end up getting to the page WEBSITE_URL/api/auth/error. It's extremely confusing because when I build it locally and run, everything works as expected. I am 100% certain that I have provided the right NEXT_AUTHURL to the environment variables but it still seems to not work 😦
It's been extremely frustrating because I can't seem to figure out why I keep getting the error, I've attached a screenshot of what the log is.
Environment variables:
NEXTAUTH_URL = https://NAME_OF_APP_HERE.vercel.app
NEXTAUTH_SECRET = SECRET_HERE