# Call Back Mismatch Error

**URL:** <https://community.auth0.com/t/call-back-mismatch-error/40413>\
**Category:** Get Help\
**Tags:** redirecturi, lock, auth0\
**Created:** [April 2, 2020, 4:57pm UTC](https://community.auth0.com/t/call-back-mismatch-error/40413 "2020-04-02T16:57:09Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![maksym.aws](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/maksym.aws/32/13779_2.png) [@maksym.aws](https://community.auth0.com/u/maksym.aws)\
**Post date:** [April 2, 2020, 4:57pm UTC](https://community.auth0.com/t/call-back-mismatch-error/40413/1 "2020-04-02T16:57:10Z")

</div>

Hi, apologizing for my english in advance. Im having problems with redirect urls/callbacks when Im trying to do silent auth with “this.lock.checkSession”. When I check Logs on my Auth Dashboard I see that “redirect\_uri” I send is incorrect and taken from “current page url” of my application. I specify redirect url as a parameter inside this.lock.checkSession.  
_ **Note: it was working just fine, and suddenly stoped without me touching any setting/rewriting auth code.** _  
Below I will show my implementation:  
silentAuth() {  
return new Promise((resolve, reject) =\> {  
this.lock.checkSession({ redirectUri: config.auth0Navigation.callback, responseType: ‘token id\_token’ }, (err, authResult) =\> {  
if (err) {  
return reject(err);  
}  
this.setSession(authResult);  
return resolve();  
});  
});  
}  
**Note: config.auth0Navigation.callback is equal to my Allowed Callback URLs, which are** “[http://localhost:3000/callback](http://localhost:3000/callback), [https://www.myproductionurl.io/callback](https://www.myproductionurl.io/callback)”  
This is log example:  
{  
“date”: “2020-04-02T16:38:12.999Z”,  
“type”: “fsa”,  
“description”: “Callback URL mismatch. [http://localhost:3000/](http://localhost:3000/) is not in the list of allowed callback URLs”,  
“ip”: “174.7.117.205”,  
“user\_agent”: “Chrome 80.0.3987 / Mac OS X 10.14.6”,  
“details”: {  
“body”: {},  
“qs”: {  
“client\_id”: “correct-id-checked”,  
“response\_type”: “token id\_token”,  
“redirect\_uri”: “[http://localhost:3000/](http://localhost:3000/)”,  
“scope”: “openid profile email”,  
“connection”: “google-oauth2”,  
“state”: “stateIdhidden”,  
“nonce”: “nonceHidden”,  
“response\_mode”: “web\_message”,  
“prompt”: “none”,  
“auth0Client”: “hidden”  
},  
“connection”: null,  
“error”: {  
“message”: “Callback URL mismatch. [http://localhost:3000/](http://localhost:3000/) is not in the list of allowed callback URLs”,  
“oauthError”: “Callback URL mismatch. [http://localhost:3000/](http://localhost:3000/) is not in the list of allowed callback URLs. Please go to ‘[https://manage.auth0.com/#/applications/correct-id-checked/settings](https://manage.auth0.com/#/applications/correct-id-checked/settings)’ and make sure you are sending the same callback url from your application.”,  
“payload”: {  
“message”: “Callback URL mismatch. [http://localhost:3000/](http://localhost:3000/) is not in the list of allowed callback URLs”,  
“code”: “unauthorized\_client”,  
“status”: 403,  
“name”: “CallbackMismatchError”,  
“authorized”: [  
“[http://localhost:3000/callback](http://localhost:3000/callback)”,  
“[https://www.myproductionurl.io/callback](https://www.myproductionurl.io/callback)”  
],  
“attempt”: “[http://localhost:3000/](http://localhost:3000/)”,  
“client”: {  
“clientID”: “correct-id-checked”  
},  
“log\_url”: “[https://manage.auth0.com/#/logs/](https://manage.auth0.com/#/logs/)”  
},  
“type”: “callback-url-mismatch”  
}  
},  
“hostname”: “[dev-o2y1hxt2.auth0.com](http://dev-o2y1hxt2.auth0.com)”,  
“auth0\_client”: {  
“name”: “lock.js”,  
“version”: “11.14.1”,  
“lib\_version”: {  
“raw”: “9.10.1”  
}  
},  
“log\_id”: “90020200402163816923000479864784842441575632461862273154”,  
“\_id”: “90020200402163816923000479864784842441575632461862273154”,  
“isMobile”: false  
}  
Thank you!

---

<div class="post-metadata">

**Author:** ![kstrongholte](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/kstrongholte/32/16354_2.png) [@kstrongholte](https://community.auth0.com/u/kstrongholte)\
**Post date:** [April 3, 2020, 5:10pm UTC](https://community.auth0.com/t/call-back-mismatch-error/40413/3 "2020-04-03T17:10:41Z")

</div>

Hi @maksym.aws, welcome to the Auth0 community!

The value passed with the `redirectUri` parameter needs to be a single URI as a string. You can see details [here](https://auth0.com/docs/libraries/auth0js/v9#available-parameters).

---

<div class="post-metadata">

**Author:** ![maksym.aws](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/maksym.aws/32/13779_2.png) [@maksym.aws](https://community.auth0.com/u/maksym.aws)\
**Post date:** [April 3, 2020, 5:21pm UTC](https://community.auth0.com/t/call-back-mismatch-error/40413/4 "2020-04-03T17:21:27Z")

</div>

Hi @kstrongholte, thank you for response.  
I think I didn’t explain correctly, in this code  
“this.lock.checkSession({ redirectUri: config.auth0Navigation.callback, responseType: ‘token id\_token’ },”  
in dev env config.auth0Navigation.callback = “[http://localhost:3000/callback](http://localhost:3000/callback)”  
in prod env config.auth0Navigation.callback = “[https://www.myproductionurl.io/callback](https://www.myproductionurl.io/callback)”  
So it is a single string.

---

<div class="post-metadata">

**Author:** ![kstrongholte](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/kstrongholte/32/16354_2.png) [@kstrongholte](https://community.auth0.com/u/kstrongholte)\
**Post date:** [April 3, 2020, 7:40pm UTC](https://community.auth0.com/t/call-back-mismatch-error/40413/5 "2020-04-03T19:40:33Z")

</div>

If you add `console.log(config.auth0Navigation.callback)` in your script before `this.lock.checkSession...`, what value do you see?

---

<div class="post-metadata">

**Author:** ![maksym.aws](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/maksym.aws/32/13779_2.png) [@maksym.aws](https://community.auth0.com/u/maksym.aws)\
**Post date:** [April 3, 2020, 7:47pm UTC](https://community.auth0.com/t/call-back-mismatch-error/40413/6 "2020-04-03T19:47:19Z")

</div>

I see the correct value. “[http://localhost:3000/callback](http://localhost:3000/callback)”. But in Auth Logs its wrong value.

---

<div class="post-metadata">

**Author:** ![Lawrence](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/lawrence/32/13081_2.png) [@Lawrence](https://community.auth0.com/u/Lawrence)\
**Post date:** [April 9, 2020, 7:41am UTC](https://community.auth0.com/t/call-back-mismatch-error/40413/7 "2020-04-09T07:41:53Z")

</div>

A callback integration fails with a configured SOAP action mismatch error when the trigger in the callback integration is configured with a connection using the Upload File checkbox to upload a WSDL that does not have a binding section[.](https://www.upsers.mobi/)
