An open API service indexing awesome lists of open source software.

https://github.com/fritzy/github-cli-auth

Node github cli interface for authenticating, getting 2factor auth, and storing and retrieving the token.
https://github.com/fritzy/github-cli-auth

Last synced: 7 months ago
JSON representation

Node github cli interface for authenticating, getting 2factor auth, and storing and retrieving the token.

Awesome Lists containing this project

README

          

## Github-CLI-Auth

`npm i --save github-cli-auth`

```js
require('github-cli-auth')({
//config
}, (err, github) => {
//err, or you're authed.
//github is npm github package instance
});
```

Config Defaults:

```js
{
tokenFile: '.github-cli-auth',
note: 'node-github-cli-auth',
noteUrl: 'https://github.com/fritzy/github-cli-auth',
scopes: ['user', 'public_repo', 'repo', 'repo:status', 'gist'],
pathPrefix: '',
userAgent: 'Node-Github-CLI-Auth'
}
```