Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

ndx-passport-github

ndxbxrme42MIT0.2.14

github plugin for ndx-passport

readme

ndx-passport-github

github login for ndx-framework apps

install with
npm install --save ndx-passport-github

example

src/server/app.coffee

require 'ndx-server'
.config
  database: 'db'
.use ndx-passport
.use ndx-passport-github
.start()

src/client/../login.jade

a(href='/api/github', target='_self') Github

environment/config variables

environment config description
GITHUB_KEY githubKey your github key
GITHUB_SECRET githubSecret your github secret
GITHUB_CALLBACK githubCallback set this to http(s)://yourservername.com/api/github/callback
GITHUB_SCOPE githubScope a list of scopes you want access to