Access denied not authorized on Vercel

Hi - I have a next.js app with simple login. All works well on dev/locally. When I deploy it to Vercel, the login works but after login when it redirects to the callback url I get access_denied (Unauthorized). Looking in the logs here is the error output:
{
“date”: “2022-01-16T00:15:47.210Z”,
“type”: “feacft”,
“description”: “Unauthorized”,
“connection_id”: “”,
“client_id”: null,
“client_name”: null,
“ip”: “3.81.69.198”,
“user_agent”: “Other 0.0.0 / Other 0.0.0”,
“details”: {
“code”: “******************************************rid”
},
“hostname”: “newsengine.us.auth0.com”,
“user_id”: “”,
“user_name”: “”,
“auth0_client”: {
“name”: “nextjs-auth0”,
“version”: “1.6.1”,
“env”: {
“node”: “v14.18.1”
}
},
“log_id”: “90020220116001551625908024408157131357966250591538642946”,
“_id”: “90020220116001551625908024408157131357966250591538642946”,
“isMobile”: false
}

Does anyone have any ideas? I’ve been battling this for hours.

Hi @boris

Welcome to the Auth0 Community!

Can you confirm you have correctly set your application type to Regular Web Application?