[Community Edition] OAuth Example -- Node Express web app
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.
views
.gitignore
.nvmrc
README.md
app.js
package.json
yarn.lock

README.md

express

How to run

Register your app

Visit "My apps" console and set

  • Name: as you like
  • Redirect uris: http://127.0.0.1:3000/callback

Set scopes (whitelists) in "Authorization scopes" panel.

  • report:eye-color
  • report:beard-thickness
  • report:morning-person

Run your app

$ npm install
$ export GENOMELINK_CLIENT_ID=<your_client_id>
$ export GENOMELINK_CLIENT_SECRET=<your_client_secret>
$ export GENOMELINK_CALLBACK_URL="http://127.0.0.1:3000/callback"
$ node app.js

then, visit http://127.0.0.1:3000

How it works

See https://genomelink.io/developers/docs/tutorial-oauth-example/

Requirements

Node >= 8.9.0