I am new with web3auth and trying to implement login/onboarding with web3auth.
The problem is when we use pnp and try to social login (openlogin adapter), I am getting 403 error: “Failed to connect with openlogin provider” after we upgrade the plan from growth to scale.
Before we are in growth, I can get pregenerated wallet address with social login, but can’t access to the wallet address.
Here’s my code snippet.
const chainConfig = {
chainNamespace: CHAIN_NAMESPACES.SOLANA,
chainId: '0x1',
rpcTarget: 'https://api.mainnet-beta.solana.com',
displayName: 'Solana Mainnet',
blockExplorerUrl: 'https://explorer.solana.com',
ticker: 'SOL',
tickerName: 'Solana',
logo: 'https://images.toruswallet.io/solana.svg',
};
const privateKeyProvider = new SolanaPrivateKeyProvider({
config: {
chainConfig: chainConfig,
},
});
const web3AuthOptions: Web3AuthOptions = {
clientId: WEB3AUTH_CLIENT_ID,
web3AuthNetwork: WEB3AUTH_NETWORK.SAPPHIRE_MAINNET,
privateKeyProvider,
uiConfig: {
appName: 'OFAI',
mode: 'dark',
theme: {
primary: '#FF00FF',
},
loginMethodsOrder: ['google', 'apple', 'facebook', 'twitter'],
modalZIndex: '9999999',
},
sessionTime: 86400 * 7,
};
export const web3auth = new Web3Auth(web3AuthOptions);
getDefaultExternalAdapters({ options: web3AuthOptions }).then((adapters) => {
adapters.forEach((adapter) => {
web3auth.configureAdapter(adapter);
});
});
await web3auth.initModal();
const token = await web3auth.authenticateUser();