Monday, 26 February 2018

Use Ethereum to Authenticate User Login using MetaMask and meta-auth for ExpressJS

Last March MetaMask maintainer Dan Finlay wrote The New Secure Way to Sign Data in Your Browser. Or how to use the MetaMask chrome plugin to verify messages sent from a remote server.MetaMask is a browser extension that provides Chrome with an interactive Ethereum wallet. It web3 enables the browser. This authentication strategy abandons usernames and passwords in favor of signed messages - the same security used to create Ethereum transactions.This is becoming more and more popular based on sites like Cryptokitties and Bloom using your MetaMask account to identify users & tokens. I didn't see anything in npm so I went ahead and wrote an Express middleware that you can drop into your existing projects.Just add the middleware to your route, set a few parameters and the middleware will take of all the rest.Here is a write up explainingHere is the Githubnpm

Submitted February 26, 2018 at 05:39PM by WeaponizedMath

No comments:

Post a Comment