GitHub

您所在的位置:网站首页 eosconnect GitHub

GitHub

2024-02-21 12:55| 来源: 网络整理| 查看: 265

EOSconnect Fork of eosconnect-web by @wehmoen. A slightly different eosconnect-web fork for the latest EOS API working with SQLite3 and own broadcaster. Allow users to sign in to your application using their EOS account. Installation

Clone the repo and run

npm install

Create config.js in root folder. Then edit and add:

module.exports = { jwt_token: "RANDOM_STRING", postback: "/SOME_POSTBACK_URL", base_url: "https://eosconnec/", api: "https://eos.greymass.com", port: "3000", }; Run npm start Demo

A demo implementation can be found at https://eosconnec.

API

/users/me - Get user profile (require valid access token)

Tokens

Tokens are created with JWT, the payload is public. Here is how it look:

{ "app": "app", "scopes": [ "login" ], "account": "username" }

Tokens are valid for 14200 seconds.

Libaries nodeJs: @wehmoen/ec-sdk


【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3