CoreKit, SFA and MetaMask

Hi

I’ve been trying to implement the following setup

Angular webapp
SFA Auth using CoreKit to verity FirebaseAuth JWT tokens via a Social Log (success)
Add MetaMask signup (failure)

I seem to run into several issues I’m not sure how to resolve’

  1. SFA core-kit is at version 7.3.2. This causes issues with 8.0.1 packages, mainly the EthereumProvider, so I can’t seem to use @web3auth/no-modal and @web3auth/single-factor-auth as this conflicts on the PrivateProvider Type (could be my setup though - just asking here in case it is known issue) - the error I’m seeing is

    Type '"casper"' is not assignable to type 'ChainNamespaceType'.

  2. I can’t see any way to login in to MetaMask using core-kit. The connect method requires an iDToken, there’s no way to attach adapters. Can’t find anything in the docs clearly stating external wallets can’t be used purely with CoreKit (the connect LogIn params even mentions MetaMask)

To confirm, it looks like I need to write a custom login sign for the Metamask, verify on server, return a custom credential and then send that to Web3Auth SFA Connect, but my concern is that contains very little data.

Does Web3Auth not have a modular External Wallet signup flow we can use outside of the PNP kit

Thanks

hi @sky.rumsey,

Hope you are doing good.

  1. please check the ChainNameSpaceType that are aceppt in this link: https://web3auth.io/docs/sdk/pnp/web/no-modal/initialize#chainconfig (CHAIN_NAMESPACES.EIP155 , CHAIN_NAMESPACES.SOLANA & CHAIN_NAMESPACES.OTHER). Please share with me your setup so i can help you.
    Please find here different examples to connect to different blockchains : https://github.com/Web3Auth/web3auth-pnp-examples/blob/main/web-no-modal-sdk/blockchain-connection-examples/multi-chain-no-modal-example/src/App.tsx

  2. Corekit does not support external wallets.

please contact me if you have any other question :slight_smile: