It was working fine. Recently we created custom-auth-verifier for web non-modal integration. After that it started giving different privKey in Android and iOS.
Hope this detail will help you in identifying the cause.
@shahbaz
We have been investigating for a long time and have not found anything specific. We are sure that we have used the same ClientId and network, and the only difference is that the web uses a verifier. Below is our code.
To ensure that you get the same keys, you need to use the same verifier in your Flutter code as well. This is because the Web3Auth default verifier is being used, which can lead to different keys for you.
final loginConfig = HashMap<String, LoginConfigItem>();
loginConfig['jwt'] = LoginConfigItem(
verifier: "****t-website-google", // get it from web3auth dashboard
typeOfLogin: TypeOfLogin.google,
name: "Web3Auth Flutter Google Example",
clientId: "google client id"
);
await Web3AuthFlutter.init(Web3AuthOptions(
clientId: 'your client id',
network: Network.cyan,
redirectUrl: redirectUrl,
loginConfig: loginConfig));
}