I did this when Im using moralis normal auth without firebase extension but when using the extension this is the code and now in the package Ive seen I can pass a custom provider but not sure how to set it up
import { signInWithMoralis } from "@moralisweb3/client-firebase-evm-auth";
const res = await signInWithMoralis(moralisAuth, {
provider: ?,
});
what do I need to pass to the provider?
when I pass a normal provider like web3Modal. it opens the web3modal options but once I select any of the option it throws error
import { signInWithMoralis } from "@moralisweb3/client-firebase-evm-auth";
const res = await signInWithMoralis(moralisAuth, {
provider: await web3Modal.connect(),
});
This opens up the web3modal with options I passed , Meatamask and Walletconnect
Screenshot 2022-11-20 at 09.23.15|608x424
but after choosing any option there iare two errors
Error: PollingBlockTracker - encountered an error while attempting to update latest block:
undefined
TypeError: provider.getSigner is not a function
What should I pass to the provider so it works as normal
cheers