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?

Hey team!

This topic seems related to the new Auth0 Integration available new in Vercel Marketplace. This is the first version of this integration, and we welcome your feedback to improve future iterations.

You’ll need an existing Vercel project to use the new integration to build and customize the Identity flow. You can either import your project into Vercel or use a Vercel template so you don’t have to start from scratch like our SaaStart template to deploy a production-ready B2B SaaS app in minutes (learn more here).

If you find yourself having questions regarding this new integration for the next two weeks, we are hosting an Ask Me Anything session. Our Product Expert will provide comprehensive written answers on August 8th from 8 AM to 10 AM PST.

Find out more about Auth0 Integration and learn more about AMA.

Thanks!