Web3Auth redirection after connecting not working

Please provide the following details too when asking for help in this category:

Please provide the Web3Auth initialization and login code snippet below:

My login :

await web3auth.login({
     loginProvider:
          platform === 'APPLE'
          ? LOGIN_PROVIDER.APPLE
          : platform === 'LINKEDIN'
          ? LOGIN_PROVIDER.LINKEDIN
          : LOGIN_PROVIDER.GOOGLE,
     redirectUrl: resolvedRedirectUrl,
     mfaLevel: 'none',
     curve: 'secp256k1',
     sessionTime: 86400, // 1 day in seconds
     max_age: 86400, // 1 day in seconds
});

My resolveRedirectUrl :

const resolvedRedirectUrl =
  Constants.appOwnership == AppOwnership.Expo || Constants.appOwnership == AppOwnership.Guest
    ? Linking.createURL("web3auth", {})
    : Linking.createURL("web3auth", { scheme : Constants.manifest.scheme, path: "redirect" });

My app.json :

{
  "expo": {
    "name": "APP",
    "owner": "dev",
    "slug": "mobile-app",
    "version": "1.0.0",
    "scheme": "app",
    "orientation": "portrait",
    "icon": "./assets/images/logo.png",
    "userInterfaceStyle": "dark",
    "splash": {
      "image": "./assets/images/icon.png",
      "resizeMode": "contain",
      "backgroundColor": "#000000"
    },
    "updates": {
      "fallbackToCacheTimeout": 0,
      "url": "https://u.expo.dev/[PROJECT_ID]"
    },
    "assetBundlePatterns": [
      "**/*"
    ],
    "ios": {
      "supportsTablet": true,
      "bundleIdentifier": "io.dev.mobileapp"
    },
    "android": {
      "adaptiveIcon": {
        "backgroundColor": "#000"
      },
      "package": "com.dev.mobileapp"
    },
    "web": {
      "favicon": "./assets/images/logo.png"
    },
    "plugins": [
      "expo-localization",
      [
        "expo-barcode-scanner",
        {
          "cameraPermission": "Allow APP to access camera."
        }
      ]
    ],
    "extra": {
      "eas": {
        "projectId": "[PROJECT_ID]"
      }
    },
    "runtimeVersion": "exposdk:48.0.0"
  }
}

Usefull details

Before, when I used Web3Auth 3.5.0, I didn’t have any redirection issues when running eas update in my Expo CLI, but now it seems that the scheme is not correct in the “deployed” app to eas update. But it works well in the development environment (running expo start)

Thanks for all !

@phillhorae Thanks for your post.

Can you please update the web3auth libraries to the latest version and check?

Hello, thank you for the answer !

Here is the version of my only web3auth library :

"@web3auth/react-native-sdk": "^4.0.0",

I think I have a problem in the resolvedRedirectUrl, maybe the scheme does not correspond to the scheme of my app ?
The redirection works on the development version (running with npx expo start)
The redirection doesn’t work (and shows the error that is on my screenshot) on the “deployed” version running after npx eas update

Do you have any idea of the solution ?

Thanks a lot