Skip to content

Commit 4927d2e

Browse files
committed
No longer need to pass auth param
Handled on existence of token now
1 parent 75a3e89 commit 4927d2e

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,15 @@ Create a Github instance.
2424
```js
2525
var github = new Github({
2626
username: "YOU_USER",
27-
password: "YOUR_PASSWORD",
28-
auth: "basic"
27+
password: "YOUR_PASSWORD"
2928
});
3029
```
3130

3231
Or if you prefer OAuth, it looks like this:
3332

3433
```js
3534
var github = new Github({
36-
token: "OAUTH_TOKEN",
37-
auth: "oauth"
35+
token: "OAUTH_TOKEN"
3836
});
3937
```
4038

0 commit comments

Comments
 (0)