ea-git
see also https://www.npmjs.com/package/ea-session-storage
npm install --save ea-git
Setup environment variables:
GITHUB_CLIENT_ID
GITHUB_CLIENT_SECRET
Usage with express
var http = ;var express = ;var git = ; var app=;var PORT=3000; //bind to some route, providing a session secret, and cookie expiration dateapp; //start server http;
In the browser
<!-- Get (automatically generated) Client API -->github login