MoralisWeb3 / react-moralis

Hooks and components to use Moralis in a React app
MIT License
624 stars 166 forks source link

Add web3modal compatibility #185

Closed PatrickAlphaC closed 2 years ago

PatrickAlphaC commented 2 years ago

New Feature Request

Checklist

Current Limitation

Right now, the suggested way for users to authenticate is to click a button for either wallet connect or metamask, however it would be great if the default was just "connect" and it brought you to a screen where you could pick your connection, like web3modal has.

I think it would be great to integrate this plugin out of the box.

I'm not sure if this belongs here or in the main moralis SDK package

ivan-liljeqvist commented 2 years ago

thats a great idea, will forward to the team now

PatrickAlphaC commented 2 years ago

I should have clarified.

I meant it would be great to have an "import {moralisModal} from "useMoralis", so that users wouldn't need to go through the laborious process of adding all the possible connections.

Then, they could do like moralisModal.connect and the user could pick whatever the developers have designed in the config. Giving the choice to the developer of having them connect to "raw" metamask, walletconnect etc, or "authenticated" metamask, walletconnect, etc.

"Raw" meaning without a moralis server "Authenticated" of course having a moralis server.

locothedev commented 2 years ago

@ivan-liljeqvist @PatrickAlphaC this sounds like something perfect for web3uikit 👀

Y0moo commented 2 years ago

I'm working now on <ConnectButton /> for web3uikit and it will have similar functionality.

PatrickAlphaC commented 2 years ago

oooooooooo

ErnoW commented 2 years ago

I agree, this is perfect for web3Ui kit, closing this issue