EOSconnect.me Source
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin
public
routes
views
.gitignore
README.md
app.js
eosconnect.db
helper.js
package-lock.json
package.json

README.md

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://eosconnect.me/",
    api: "https://eos.greymass.com",
    port: "3000",
};

Run

npm start

Demo

A demo implementation can be found at https://eosconnect.me.

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