# Access denied not authorized on Vercel

**URL:** <https://community.auth0.com/t/access-denied-not-authorized-on-vercel/76474>\
**Category:** Get Help\
**Tags:** access, nextjs\
**Created:** [January 16, 2022, 12:28am UTC](https://community.auth0.com/t/access-denied-not-authorized-on-vercel/76474 "2022-01-16T00:28:19Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![boris](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/boris/32/33355_2.png) [@boris](https://community.auth0.com/u/boris)\
**Post date:** [January 16, 2022, 12:28am UTC](https://community.auth0.com/t/access-denied-not-authorized-on-vercel/76474/1 "2022-01-16T00:28:20Z")

</div>

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](http://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.

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [January 18, 2022, 2:38pm UTC](https://community.auth0.com/t/access-denied-not-authorized-on-vercel/76474/3 "2022-01-18T14:38:27Z")

</div>

Hi @boris

Welcome to the Auth0 Community!

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

 ![image](https://global.discourse-cdn.com/auth0/original/3X/a/8/a8f7141444b1295738c0e4ada6ec70e90d75834d.png)

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [March 14, 2022, 6:17pm UTC](https://community.auth0.com/t/access-denied-not-authorized-on-vercel/76474/4 "2022-03-14T18:17:13Z")

</div>



---

<div class="post-metadata">

**Author:** ![dawid.matuszczyk](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dawid.matuszczyk/32/74550_2.png) [@dawid.matuszczyk](https://community.auth0.com/u/dawid.matuszczyk)\
**Post date:** [July 31, 2024, 9:06pm UTC](https://community.auth0.com/t/access-denied-not-authorized-on-vercel/76474/5 "2024-07-31T21:06:31Z")

</div>

Hey team!

This topic seems related to the new [Auth0 Integration](https://auth0.com/blog/auth0-vercel-integration/) available new in [Vercel Marketplace](https://vercel.com/integrations/auth0). This is the first version of this integration, and we welcome your feedback to improve future iterations.

You’ll need an [existing Vercel project](https://vercel.com/docs/projects/overview) 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](https://auth0.com/blog/speed-up-your-customer-identity-journey-with-auth0-saastart/)).

If you find yourself having questions regarding this new integration for the next two weeks, we are hosting an [Ask Me Anything session](https://community.auth0.com/t/auth0-community-ask-me-anything-integrating-auth0-within-the-vercel-marketplace/136388). Our Product Expert will provide comprehensive written answers on August 8th from 8 AM to 10 AM PST.

Find out more about [Auth0 Integration](https://auth0.com/blog/auth0-vercel-integration/) and [learn more about AMA](https://community.auth0.com/t/auth0-community-ask-me-anything-integrating-auth0-within-the-vercel-marketplace/136388).

Thanks!
