fitzgen/github-api — pull request #15 by JangoSteve (2012-01-02 22:52:45+00:00)
Title: Added support for authenticating via OAuth access token.

From the [Github api v2 docs](http://develop.github.com/p/general.html):

> OAuth is the preferred authentication method because tokens can be limited to specific types of data, and can be revoked by users at any time.

I added support for authenticating with an OAuth access token. According to the [Github OAuth docs](http://develop.github.com/p/oauth.html), we just pass the `access_token` parameter with the request URL instead of `login` and `token` (though I obviously left that as the default).

Authenticating via OAuth token:

```js
gh.authenticate(null, null, )
```