I am using wallet connect an Open protocol for connecting Wallets to Dapps with web3 modal sdk . the wallet connect requires an infura key. Since the wallet connect is executed on the borwser it exposes the infura key on the front end. However infura offers a way to send a request with jwt authentication. how do i integrate it with wallet connect?

     walletconnect: {
       package: WalletConnectProvider,
       options: {

1 Answer 1


To do this you need to authenticate the user yourself. Provide them the credentials "JWT" to be authorized with infura. Authenticating users is done in the back-end. Because one way or another, you need to store the key you will use to generate each users key. This is why Infura do not handle private key.

You can read about it here;




  1. You change the key every now and then.
  2. You sync a node yourself and let your dApp access it freely.
  3. You build a centralized back-end and pay for it's upkeep to store a free api key?
  4. You don't worry to much about it because you can always switch to metamask anyways.
  • clearly explained, I appreciate it.
    – leycun
    Commented Sep 21, 2021 at 2:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.