How to get session key?

Hi
we are using Web3AuthMPCCoreKit for login. How to get session key to use write smart contract function in my application ?

Here my login code!!

 const coreKitInstance = new Web3AuthMPCCoreKit({
        web3AuthClientId: env.NEXT_PUBLIC_WEB3AUTH_CLIENTID,
        web3AuthNetwork: WEB3AUTH_NETWORK.DEVNET,
        uxMode: "popup",
      })
      await coreKitInstance.init()

      const provider = await coreKitInstance.connect({
        subVerifierDetails: {
          typeOfLogin: "google",
          verifier: "new-blokc-verifier",
          clientId: env.NEXT_PUBLIC_GOOGLE_ID,
        },
      })

hello @chintan.tanthetaa23
Our SDK does not provide function for returning session key, please refer to the documentation.
For more information, see https://web3auth.io/docs/sdk/core-kit/mpc-core-kit/usage

Hello @pepper
But we are generate wallet and this wallet address to read and write samrt contract function using etherjs. i am write function in smart contract that time session key or private key pass and than write function.
How to get session key for generate wallet using web3auth MPC core kit ?

@pepper Any Update!!?

Hello @chintan.tanthetaa23
here’s the example that can send transcation with mpc core kit.

hope this example helps. thanks

Hello @pepper

can i use web3auth/mpc-core-kit to create a AA wallet ?
and Any other method in wen3auth use to create AA wallet?

hello, you can refer to this link.

plus if you want further question besides session key, please make a new thread.
Thank you.

1 Like

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