Any idea how to use this option with rainbowkit wallet?
V1 doc does not provide a good example for this TBH.
Moralis.authenticate({ connector: CustomConnector })
so connector instrance has a structure of
interface Connector {
type: string;
network: string;
account: null | string;
chainId: null | string;
activate: () => Promise<{
provider: Provider;
account?: string | null;
chainId?: string | null;
}>;
deactivate: () => Promise<void>;
[key: string]: any;
}
Can it go well with rainbowkit when user selects coinbase, walletconnect, etc
Looking at wagmi’s useConnect or useProvider but not sure how to implement!