# Swift Getting Invalid callback URL error

**URL:** <https://community.auth0.com/t/swift-getting-invalid-callback-url-error/113294>\
**Category:** Get Help\
**Tags:** new-universal-login-experience, login-experience\
**Created:** [August 9, 2023, 7:15pm UTC](https://community.auth0.com/t/swift-getting-invalid-callback-url-error/113294 "2023-08-09T19:15:30Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ahmed.nour](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ahmed.nour/32/48638_2.png) [@ahmed.nour](https://community.auth0.com/u/ahmed.nour)\
**Post date:** [August 9, 2023, 7:15pm UTC](https://community.auth0.com/t/swift-getting-invalid-callback-url-error/113294/1 "2023-08-09T19:15:31Z")

</div>

We are working on iOS Application Recently on `Sentry` we started to receive Invalid callback URL  
The message as follows :  
`Auth0.WebAuthError: Invalid callback URL: com.ourapp.app://login.domain.com/ios/com.ourapp.app/callback?code=abc&state=efg`

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [August 9, 2023, 10:48pm UTC](https://community.auth0.com/t/swift-getting-invalid-callback-url-error/113294/3 "2023-08-09T22:48:55Z")

</div>

Hi @ahmed.nour,

Could you please make sure that the intended callback URL was added to your Application’s **Allowed Callback URLs** list?

![image](https://global.discourse-cdn.com/auth0/original/3X/c/4/c48064d67caa1d2257b5b4819387a6836a29e8f0.png)

Please let me know how this goes for you.

Thanks,  
Rueben

---

<div class="post-metadata">

**Author:** ![ahmed.nour](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ahmed.nour/32/48638_2.png) [@ahmed.nour](https://community.auth0.com/u/ahmed.nour)\
**Post date:** [August 10, 2023, 3:14pm UTC](https://community.auth0.com/t/swift-getting-invalid-callback-url-error/113294/4 "2023-08-10T15:14:44Z")

</div>

This is what we have currently in allowed callback urls Also this issue doesn’t happen all the time  
`com.ourapp.app://login.domain.com/ios/com.ourapp.app/callback`

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [August 10, 2023, 5:12pm UTC](https://community.auth0.com/t/swift-getting-invalid-callback-url-error/113294/5 "2023-08-10T17:12:50Z")

</div>

Hi @ahmed.nour,

Thanks for the update.

Could you please send me your tenant name in a direct message for me to look into this further?

Thanks,  
Rueben

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [August 24, 2023, 5:13pm UTC](https://community.auth0.com/t/swift-getting-invalid-callback-url-error/113294/6 "2023-08-24T17:13:45Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
