JP Metamask Login - Add custom code
Article Index
Page 4 of 4
Add custom code:
- Add the below code wherever you want as custom or override to execute the onclick event to trigger metamask extension
<a class="uk-button uk-button-primary uk-width-1-1" href="#" onclick="loginWithMetaMask()"> Login With MetaMask </a>
- When the user clicks the link with the metamask extension installed will prompt for the user confirmation to login using wallet address.
- After the user confirmation then the site is logged in and redirected to the mentioned page.