This topic was originally posted by travis.skweres on 7/10/2023.
This content has been migrated from our previous community forum to preserve valuable discussions.
I’m currently running on an older version:
"@web3auth/single-factor-auth": "^5.1.1",
if I upgrade to “@web3auth/single-factor-auth”: “^6.2.1”
suddenly my authentication returns a different public / private key pair
Is there a way to upgrade the SDK but allow my users to keep their same wallets?
const web3auth = new Web3Auth({
clientId: “WEB3AUTH_CLIENT_ID”, // Get your Client ID from Web3Auth Dashboard
// Available networks are “testnet”, “mainnet”, “cyan”, “aqua”, .
web3AuthNetwork: “cyan”,
});
web3auth.init({ provider });
However, doing this changed my public / private key pair.
When I downgraded back to 5.1.1, and put my code back to where .init() is empty, and not using the EthereumPrivateKeyProvider, I was returned my expected public / private key(s)