"App Name" Wants to Use "auth0.com" to Sign In - how to eliminate this prompt in Expo / React Native on iOS?


We’re building our app using Expo and React Native. We are using the React Native SDK, as documented in the Expo guide Auth0 Expo SDK Quickstarts: Login. The instructions totally work - login/logout works on both iOS and Android, in simulator/emulator and on real hardware.

On iOS, both on the simulator and on real hardware, when we login or logout, the OS prompts us with a pop-up:

“AppName” Wants to Use
auth0.com” to Sign In
Cancel Continue

How do we make it not issue that prompt?

Hey there @rkasper !

Great to hear login/logout is working as epxected - Please see the following FAQ regarding the alert:

That should do the trick :slight_smile:


W00t! @tyf , that’s it! Thank you so so much!

And for anyone else watching, the implied code for “Just clearing the credentials from the app will suffice.” is:

await clearCredentials();

My full logout function is:

  const logout = async () => {
    if (Platform.OS === "ios") {
      await clearCredentials();
    } else {
      try {
        await clearSession({
          customScheme: process.env.EXPO_PUBLIC_AUTH0_SCHEME,
      } catch (e) {
        console.log("Log out cancelled", e);
1 Like

Hey @rkasper no problem, happy to help! Glad you were able to get this sorted and thanks for sharing your logout funciton :cowboy_hat_face:

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