<script>
tag below the Moralis init code.index.html
on localhost
as a web page. The easiest way is by using the live server extension Visual Studio Code. Just right click on index.html
and select Open with Live Server
.Moralis Login
button will call Moralis.authenticate()
and prompt the user to connect MetaMask.F12
. You should see a message like the following. Congratulations, your dApp has it's first user!Logout
button will call Moralis.User.logOut()
. It's that easy.