# Swift tutorial - callback URL mismatch

**URL:** <https://community.auth0.com/t/swift-tutorial-callback-url-mismatch/45363>\
**Category:** Get Help\
**Created:** [June 26, 2020, 6:32pm UTC](https://community.auth0.com/t/swift-tutorial-callback-url-mismatch/45363 "2020-06-26T18:32:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dfoote](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dfoote/32/22211_2.png) [@dfoote](https://community.auth0.com/u/dfoote)\
**Post date:** [June 26, 2020, 6:32pm UTC](https://community.auth0.com/t/swift-tutorial-callback-url-mismatch/45363/1 "2020-06-26T18:32:07Z")

</div>

I get the callback URL error when I try to navigate to the sign in page in the starter app. I can’t see what URL it is complaining about and I can’t find where to configure the callback url in the app. Any tips???

---

<div class="post-metadata">

**Author:** ![ricardo.batista](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ricardo.batista/32/7711_2.png) [@ricardo.batista](https://community.auth0.com/u/ricardo.batista)\
**Post date:** [June 29, 2020, 7:53am UTC](https://community.auth0.com/t/swift-tutorial-callback-url-mismatch/45363/2 "2020-06-29T07:53:55Z")

</div>

Hi @dfoote, the Swift callback url is defined by default as `{PRODUCT_BUNDLE_IDENTIFIER}://YOUR_DOMAIN/ios/{PRODUCT_BUNDLE_IDENTIFIER}/callback`

You’ll need to replace the {PRODUCT\_BUNDLE\_IDENTIFIER} placeholder with your iOS bundle id and add it in the Auth0 dashboard, for your application, under the **Allowed Callback URLs** field.

> **[Auth0 iOS / macOS SDK Quickstarts: Login](https://auth0.com/docs/quickstart/native/ios-swift)**
>
> This guide demonstrates how to integrate Auth0 with any new or existing iOS / macOS application using the Auth0.swift SDK.

> **[Redirect Users](https://auth0.com/docs/authenticate/login/redirect-users-after-login)**
>
> Describes how to redirect users to URLs that have not been added to the AllowList.

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [June 29, 2020, 11:02am UTC](https://community.auth0.com/t/swift-tutorial-callback-url-mismatch/45363/3 "2020-06-29T11:02:14Z")

</div>

Thanks Ricardo for providing that solution!

---

<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:** [July 14, 2020, 11:02am UTC](https://community.auth0.com/t/swift-tutorial-callback-url-mismatch/45363/4 "2020-07-14T11:02:16Z")

</div>

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