【问题标题】:How to install and use eth-auth (ethauth-server) library如何安装和使用 eth-auth (ethauth-server) 库
【发布时间】:2022-09-23 12:03:33
【问题描述】:

首先,什么是eth-auth图书馆及其用途?另外,如何安装它(ethauth-server npm 库) 在我的 node.js 项目上?

    标签: node.js authentication npm ethereum


    【解决方案1】:

    eth-auth(ethauth 服务器) 是安全的npm 库通过使用用户的以太坊私钥签署外部不可预测的动态 JWT 令牌,对 node.js 去中心化应用程序 (dApps) 进行无密码用户身份验证。

    强调

    1. 去中心化 (Web3)
    2. 匿名 - 覆盖 dApp 管理者和世界其他地方的用户身份。
    3. 无密码 - 您的以太坊私钥就是您的密码,不会泄露给任何人。
    4. Breach-less - 根据 eth-auth 身份验证架构,无需在数据库中存储有意义的用户数据。

      安装将 eth-auth 添加为项目的依赖项。

      npm:

      npm install ethauth-server
      

      yarn add ethauth-server
      

      文档:https://sathnindu-kottage.gitbook.io/eth-auth/
      GitHub:https://github.com/project-evilcodes/ethauth-server
      npm:https://www.npmjs.com/package/ethauth-server
      网址:https://eth-auth-beta.netlify.app

    【讨论】:

      【解决方案2】:

      就像安装其他 npm 包一样,

      npm install ethauth-server
      

      并导入包
      更多详情:https://sathnindu-kottage.gitbook.io/eth-auth/

      【讨论】:

        猜你喜欢
        • 2021-12-11
        • 1970-01-01
        • 1970-01-01
        • 2018-05-22
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2012-11-16
        相关资源
        最近更新 更多