# Callback URL mismatch. The provided redirect\_uri is not in the list of allowed callback URLs

**URL:** <https://community.auth0.com/t/callback-url-mismatch-the-provided-redirect-uri-is-not-in-the-list-of-allowed-callback-urls/83885>\
**Category:** Get Help\
**Tags:** nextjs\
**Created:** [May 22, 2022, 2:31am UTC](https://community.auth0.com/t/callback-url-mismatch-the-provided-redirect-uri-is-not-in-the-list-of-allowed-callback-urls/83885 "2022-05-22T02:31:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![zlodej08](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/zlodej08/32/37512_2.png) [@zlodej08](https://community.auth0.com/u/zlodej08)\
**Post date:** [May 22, 2022, 2:31am UTC](https://community.auth0.com/t/callback-url-mismatch-the-provided-redirect-uri-is-not-in-the-list-of-allowed-callback-urls/83885/1 "2022-05-22T02:31:18Z")

</div>

hey community 🙂

 ![Screenshot 2022-05-22 at 04.30.28](https://global.discourse-cdn.com/auth0/original/3X/6/a/6a5c904f8394375798cacb9f9def2d83fecdf1cf.png)

i have next js app deployed to vercel,  
keep getting this error  
`unauthorized_client: Callback URL mismatch. https://$VERCEL_URL/api/auth/callback is not in the list of allowed callback URLs`  
maybe im missing some env var ?

plz help 🙂

the app is hosted here [https://www.praguexpats.com/](https://www.praguexpats.com/)  
callback urls screen below

I tried all combination of Allowed Callback URLs, but no luck, really stuck

 ![Screenshot 2022-05-22 at 04.26.41](https://global.discourse-cdn.com/auth0/original/3X/e/0/e03d84cf3f355f0149a29f918b9824e28622f379.jpeg)

---

<div class="post-metadata">

**Author:** ![john.gateley](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/john.gateley/32/10879_2.png) [@john.gateley](https://community.auth0.com/u/john.gateley)\
**Post date:** [May 23, 2022, 1:22pm UTC](https://community.auth0.com/t/callback-url-mismatch-the-provided-redirect-uri-is-not-in-the-list-of-allowed-callback-urls/83885/2 "2022-05-23T13:22:48Z")

</div>

Yes, looks like you are missing an environment variable, or the URL is not being expanded properly. You shouldn’t see the $VERCEL\_URL in the error message.

John

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [October 6, 2022, 12:02am UTC](https://community.auth0.com/t/callback-url-mismatch-the-provided-redirect-uri-is-not-in-the-list-of-allowed-callback-urls/83885/3 "2022-10-06T00:02:11Z")

</div>


