get-github-token
Prompt the user for username/password to get a github token. Works with TFA.
var getToken = // or pass your own github api instance!var gh = version: '3.0.0' protocol: 'https'
API
getToken(scopes, note, noteUrl[, github], ready)
// signature
getToken(
scopes:Array<String>
, note:String
, noteUrl:String
[, github:Github]
, ready:Function(err:Error, token:String)
)
Prompts the user for username/password in order to attain a Github oauth
token. Requires a list of scopes,
a note string, a note url, and a callback. The callback will receive err
or
token
, where token
represents a string containing the oauth token. If not
given, the github
parameter will be a node-github instance
created as a 3.0.0
API against https
protocol.
License
MIT