Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5283017

Browse files
committed
Merge pull request github-tools#99 from michael/edit-readme
Edit "auth" on reamde
2 parents 9c990a0 + 4c4e9cc commit 5283017

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

README.md

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

3132
Or if you prefer OAuth, it looks like this:
3233

3334
```js
3435
var github = new Github({
35-
token: "OAUTH_TOKEN"
36+
token: "OAUTH_TOKEN",
37+
auth: "oauth"
3638
});
3739
```
3840

0 commit comments

Comments
 (0)