Web3 Provider
If your dApp is written using web3 and already works with MetaMask, it's super easy to integrate with Fortmatic. All you have to do is to swap your existing web3 provider with the Fortmatic provider and continue developing in the same version of web3 you use.
Replace Web3 Provider
MetaMask or dApp Browsers
You can also let existing users who have MetaMask installed to continue using MetaMask without disruption and direct new users without MetaMask to Fortmatic. This method also works with legacy dApp browsers.
Detecting the Fortmatic Provider
As a convenience, you can detect the Fortmatic web3 provider by checking for an isFortmatic
property on the provider object. The following lines of code should evaluate to true
when using the Fortmatic provider:
Last updated