Cant get pregenerated wallet with pnp blugin

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();

hi @joenry95

Would you mind checking our Solana Modal PnP Example ? Please double check the version of the Web3auth packages that you are using.

Please contact me again if you can’t solve your problem.

it’s working fine on Dev/Test net, but not working on main net.
here’s the versions:
@solana/web3.js”: “^1.93.0”,
@wavesurfer/react”: “^1.0.4”,
@web3auth/base”: “^8.6.2”,
@web3auth/default-solana-adapter”: “^8.6.2”,
@web3auth/modal”: “^8.6.2”,
@web3auth/solana-provider”: “^8.6.2”,
@web3auth/wallet-services-plugin”: “^8.6.2”,

I’d like to get the wallet address correctly and access the wallet via phantom when social login

I think this issue is fixed now. rpcTarget was not correct on the solana main net.

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.