Web3 Modal
Connecting to ORE ID via the Web3 Modal Library
The Web3 Modal is an open-source library that allows a decentralized application to connect with a number of different blockchains using the same interface. This guide will explain how to add ORE ID as one of the connection options for any Web3 Modal connected application.
Javascript
Install the connector dependency from ORE ID.
Within your app's
index.ts
(or entry point) where wallet connect is configured, define theOreIdOptions
for your application.
Create a new instance of the
OreIdConnector
.
Finally, update your Wagmi configuration to include the new connector and your registered projectId.
Every project using the WalletConnect SDKs needs to obtain a projectId
from cloud.walletconnect.com. This is absolutely free and only takes a few minutes. Check out the WalletConnect Documentation for details.
And that's it! Your users will now have access to authentication via ORE ID.
You can now use Wagmi hooks like you would normally in your application. These hooks should use the OREID connector/provider.
Last updated