# \[Archive\] Web3Auth redirection after connecting not working

**URL:** <https://builder.metamask.io/t/archive-web3auth-redirection-after-connecting-not-working/1788>\
**Category:** Embedded Wallets (Web3Auth)\
**Created:** [September 11, 2023, 9:21am UTC](https://builder.metamask.io/t/archive-web3auth-redirection-after-connecting-not-working/1788 "2023-09-11T09:21:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![phillhorae](https://avatars.discourse-cdn.com/v4/letter/p/a9a28c/32.png) [@phillhorae](https://builder.metamask.io/u/phillhorae)\
**Post date:** [September 11, 2023, 9:21am UTC](https://builder.metamask.io/t/archive-web3auth-redirection-after-connecting-not-working/1788/1 "2023-09-11T09:21:27Z")

</div>

> **🏛 Archived Content from Web3Auth Community**
> 
> This topic was originally posted by **phillhorae** on 9/11/2023.  
> This content has been migrated from our previous community forum to preserve valuable discussions.

* * *

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

- SDK Version: 4.0.0
- Expo or Bare Version: “expo”: “~48.0.18”,
- Screenshots of error:  

[![20230911_110903](https://canada1.discourse-cdn.com/flex011/uploads/metamaskbuilderhub/original/2X/f/ff576edd902cddbd88e7396c7fed4b470ffa5470.jpeg)
20230911\_110903720×1355 14.2 KB
](https://web3auth.io/community/uploads/default/original/2X/5/5c6eb802771dc6335d92ed7c62129ac7ecf9109b.jpeg "20230911\_110903")

**Please provide the Web3Auth initialization and login code snippet below:**

My login :

```auto
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 :

```auto
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 :

```auto
{
  "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 !

---

<div class="post-metadata">

**Author:** ![vjgee](https://avatars.discourse-cdn.com/v4/letter/v/b5e925/32.png) [@vjgee](https://builder.metamask.io/u/vjgee)\
**Post date:** [September 11, 2023, 11:37am UTC](https://builder.metamask.io/t/archive-web3auth-redirection-after-connecting-not-working/1788/2 "2023-09-11T11:37:37Z")

</div>

@phillhorae Thanks for your post.

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

---

<div class="post-metadata">

**Author:** ![phillhorae](https://avatars.discourse-cdn.com/v4/letter/p/a9a28c/32.png) [@phillhorae](https://builder.metamask.io/u/phillhorae)\
**Post date:** [September 14, 2023, 10:54am UTC](https://builder.metamask.io/t/archive-web3auth-redirection-after-connecting-not-working/1788/3 "2023-09-14T10:54:25Z")

</div>

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
