When I upgrade to 6.2.1, i followed the docs here:
I updated my code to match, something like:
const provider = new EthereumPrivateKeyProvider({
config: {
chainConfig: {
chainId: "0x1",
rpcTarget: `https://rpc.ankr.com/eth`,
displayName: "ropsten",
blockExplorer: "https://ropsten.etherscan.io/",
ticker: "ETH",
tickerName: "Ethereum",
},
},
});
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)