Read the full post here
Building an auth system to allow users to log in using an NFT is a straighforward process. In many ways it's simpler than dealing with JWTs.
The repo is a nextjs app that connects to a metamask wallet connected to Goerli test net or the Ethereum Mainnet.
- add this to a
.env
file after signing up for Alchemy
GOERLI_ALCHEMY_API_URL = "https://eth-goerli.alchemyapi.io/v2/xxx"
MAINNET_ALCHEMY_API_URL = "https://eth-mainnet.alchemyapi.io/v2/xxx"
# will start up on localhost:3000
npm run dev
Additionally, here is a React HOC to implement NFT login