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.
- Host: GitHub
- URL: https://github.com/fritzy/github-cli-auth
- Owner: fritzy
- License: mit
- Created: 2016-02-10T00:05:32.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-02-10T05:21:00.000Z (over 9 years ago)
- Last Synced: 2025-03-01T13:20:35.290Z (8 months ago)
- Language: JavaScript
- Size: 3.91 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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'
}
```