Creating a Web3 Login with Ethereum/MetaMask

Once you click “login via MetaMask,” you’ll immediately be prompted to sign a login token - an attestation that you own your Ethereum wallet. You will first have to authenticate with your MetaMask wallet using a password.As the final step, you’ll then be asked for your encryption public key, which is used to secure your Skiff login token and password. From there, the normal Skiff login process begins - choosing a theme (light or dark mode), setting a display name, and enabling account recovery. For your collaborators’ sake, we highly encourage setting up a display name!That’s it! You’ll then have access to writing, collaboration, and sharing — all with your Ethereum wallet address.How it worksNow that we’ve covered the wallet-based login process, let’s dive into how it works behind the scenes!First time logging inFirst off, if you have the Metamask extension installed, you will see the option to log in with your wallet. If you don’t, you’ll see the familiar email-password login.