Skip to content

Commit

Permalink
Merge pull request #234 from nullivex/oauthUpdate
Browse files Browse the repository at this point in the history
No longer use Github authentication with making API calls.
  • Loading branch information
nullivex authored Jun 10, 2021
2 parents bb099ba + 9db25d1 commit 32ad8e5
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 22 deletions.
17 changes: 10 additions & 7 deletions lib/github.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,17 @@ var github = new GithubApi({
version: '3.0.0'
});

//do some auth
github.authenticate({
// -------------------------
// Github Authentication
//-------------------------
var githubCredentials = {
type: 'oauth',
//this is a key i made for @nullivex that has no special privileges it simply
//increases the api limit, please do not abuse it :(
token: 'f0150031de4ef62c5f7f38c5358c7cfc3785a595'
});

// in order to raise your API limits place a token here generated from github
// then remove the comment below
token: 'xxx'
};
// remove the comment at the beginning of the line below to activate auth
// github.authenticate(githubCredentials);

/**
* Github API instance
Expand Down
43 changes: 29 additions & 14 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"tar": "4.x"
},
"devDependencies": {
"vows": "*"
"vows": "^0.8.3"
},
"scripts": {
"build": "node ./build/build.js",
Expand Down

0 comments on commit 32ad8e5

Please sign in to comment.