Skip to content

Commit

Permalink
Merge pull request #48 from seegno/enhancement/update-readme
Browse files Browse the repository at this point in the history
Update readme
  • Loading branch information
João Granado committed Jun 1, 2015
2 parents f11cd4f + fc5f905 commit f4c6128
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,11 +143,11 @@ OAuth.revokeToken()
* `{ status: 400, data: { error: 'invalid_request' }`
* `{ status: 400, data: { error: 'invalid_grant' }`
* `{ status: 401, data: { error: 'invalid_token' }`
* `{ status: 401, headers: { 'www-authenticate': 'Bearer realm="example"' } }`

#### OAuthTokenProvider

`OAuthTokenProvider` uses [angular-cookies](https://github.com/angular/bower-angular-cookies) to store the cookies. Check the [available options](https://code.angularjs.org/1.4.0/docs/api/ngCookies/service/$cookies).
**BREAKING CHANGE**: `angular-oauth2` requires angular 1.4 or above in order to store cookies with additional options.

Configuration defaults:

Expand All @@ -160,6 +160,11 @@ OAuthTokenProvider.configure({
});
```

#### OAuthToken

If you want to manage the `token` yourself you can use `OAuthToken` service.
Please check the [OAuthToken](https://github.com/seegno/angular-oauth2/blob/master/src/providers/oauth-token-provider.js#L45) source code to see all the available methods.

## Contributing & Development

#### Contribute
Expand Down

0 comments on commit f4c6128

Please sign in to comment.