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:
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 !