borismus/oauth2-extensions — pull request #10 by neocotic (2012-05-21 07:50:21+00:00)
Title: Bug fixes and API improvements (3 of 4)

The second in a series of four pull requests in an attempt to divide the contents of #4.

This pull request contains the following changes;

* New [bit.ly](http://bit.ly) adapter
* Adding `access_type=offline` parameter to Google authorization code URL to support refresh tokens
* Changing `expiresIn` property returned by `parseAccessToken` in the sample Adapter to be `Number.MAX_VALUE` as this appears to be a better default
* Changing string concatenation used in adapters to build authorization code URLs (and anywhere else) to be more inline with modern standards

I've deliberately not added an [mixed](https://github.com/borismus/oauth2-extensions/tree/master/samples/mixed) sample to include the new bit.ly adapter as I'm not sure how you want to setup an account for demo purposes. If you want I can add everything necessary and leave `client_id` and `client_secret` as `"ENTER_CLIENT_ID"` and `"ENTER_CLIENT_SECRET"` respectively, for future todos.