# Sign in with apple for react-native not working. Invalid redirect\_uri

**URL:** <https://community.auth0.com/t/sign-in-with-apple-for-react-native-not-working-invalid-redirect-uri/44232>\
**Category:** Get Help\
**Tags:** sign-in-with-apple, apple-sign-in, auth0\
**Created:** [June 7, 2020, 10:24am UTC](https://community.auth0.com/t/sign-in-with-apple-for-react-native-not-working-invalid-redirect-uri/44232 "2020-06-07T10:24:25Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![villemiekkoja](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/villemiekkoja/32/12799_2.png) [@villemiekkoja](https://community.auth0.com/u/villemiekkoja)\
**Post date:** [June 7, 2020, 10:24am UTC](https://community.auth0.com/t/sign-in-with-apple-for-react-native-not-working-invalid-redirect-uri/44232/1 "2020-06-07T10:24:25Z")

</div>

I cannot get the sign in with apple work for react-native. I don’t know which guide I should be following if I try to get it to work in browser among other social logins.

The response I get when I try the test is: invalid redirect\_uri.

I get it working when I leave it blank and use auth0 test keys. This is the setup for my development version of the app, and it seems to be working fine. But then I switch to my production tenant, and try to do it with real keys, it just doesn’t work.

Could it be that my development version is somehow messing up my production one, because they share some same attributes? Like the bundle identifier is obviously the same (client ID). Also Team ID is the same. Which format should the Client Secret Signing Key to be put there? I just copy pasted it from the .p8 file I got from apple, and when I save the configuration I get no errors.

Is there a video somewhere that would go through the necessary steps? A documentary for react-native would also help. Now I just followed the links below the fields, and they do not give me enough details for making it work.

---

<div class="post-metadata">

**Author:** ![villemiekkoja](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/villemiekkoja/32/12799_2.png) [@villemiekkoja](https://community.auth0.com/u/villemiekkoja)\
**Post date:** [June 7, 2020, 10:43am UTC](https://community.auth0.com/t/sign-in-with-apple-for-react-native-not-working-invalid-redirect-uri/44232/2 "2020-06-07T10:43:44Z")

</div>

The instructions on this page: [https://auth0.com/docs/connections/apple-siwa/set-up-apple?\_ga=2.91969630.553381554.1591475612-866095660.1584309547](https://auth0.com/docs/connections/apple-siwa/set-up-apple?_ga=2.91969630.553381554.1591475612-866095660.1584309547)

Are out of sync with the actual form that we are supposed to use to enable the sign in with apple.

For example, the article talks about creating an App ID. Cool, but there is no App ID required in the actual form that we use. So what do I do with it?

---

<div class="post-metadata">

**Author:** ![villemiekkoja](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/villemiekkoja/32/12799_2.png) [@villemiekkoja](https://community.auth0.com/u/villemiekkoja)\
**Post date:** [June 7, 2020, 1:36pm UTC](https://community.auth0.com/t/sign-in-with-apple-for-react-native-not-working-invalid-redirect-uri/44232/3 "2020-06-07T13:36:14Z")

</div>

What should I put to the return callback url when configuring the service id for apple sign in? Since the return callback is not an url, but it will go back to the app itself, so I can’t put any url there. And apple does not allow me to leave it blank.

---

<div class="post-metadata">

**Author:** ![villemiekkoja](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/villemiekkoja/32/12799_2.png) [@villemiekkoja](https://community.auth0.com/u/villemiekkoja)\
**Post date:** [June 7, 2020, 2:32pm UTC](https://community.auth0.com/t/sign-in-with-apple-for-react-native-not-working-invalid-redirect-uri/44232/4 "2020-06-07T14:32:12Z")

</div>

Finally got it working. Don’t know exactly what was wrong. I deleted all apple developer settings (service ids etc…) and started over again from scratch. Then I set the callback url just like this: https://MY\_AUTH0\_DOMAN\_NAME/login/callback. And after all this it just started working

---

<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 8, 2020, 7:50am UTC](https://community.auth0.com/t/sign-in-with-apple-for-react-native-not-working-invalid-redirect-uri/44232/5 "2020-06-08T07:50:20Z")

</div>

Perfect! Glad you have it working and thanks for sharing with the rest of community!

---

<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:** [June 23, 2020, 7:50am UTC](https://community.auth0.com/t/sign-in-with-apple-for-react-native-not-working-invalid-redirect-uri/44232/6 "2020-06-23T07:50:21Z")

</div>

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