How to Build a Serverless Web3 Wallet Login like OpenSea with MetaMask and Cognito

Resources Service

mkdir web3-login
cd web3-login
touch resources.yml
resources.yml
serverless deploy --config resources.yml

Cognito Triggers Service

touch triggers.yml
triggers.yml
touch defineAuthChallenge.js createAuthChallenge.js verifyAuthChallenge.js preSignUp.js
npm init --yes
npm install web3 ethereumjs-util
web3-login/
node_modules/
resources.yml
triggers.yml
defineAuthChallenge.js
createAuthChallenge.js
verifyAuthChallenge.js
preSignUp.js
package.json

Trigger #1

Trigger #2

Trigger #3

Trigger #4

serverless deploy --config triggers.yml
serverless info --config resources.yml --verbose

Front End

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
David Barrick

David Barrick

Building the most valuable web3 engineering community at buildspace