Skip to content

Commit f4c6128

Browse files
author
João Granado
committed
Merge pull request #48 from seegno/enhancement/update-readme
Update readme
2 parents f11cd4f + fc5f905 commit f4c6128

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,11 +143,11 @@ OAuth.revokeToken()
143143
* `{ status: 400, data: { error: 'invalid_request' }`
144144
* `{ status: 400, data: { error: 'invalid_grant' }`
145145
* `{ status: 401, data: { error: 'invalid_token' }`
146+
* `{ status: 401, headers: { 'www-authenticate': 'Bearer realm="example"' } }`
146147

147148
#### OAuthTokenProvider
148149

149150
`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).
150-
**BREAKING CHANGE**: `angular-oauth2` requires angular 1.4 or above in order to store cookies with additional options.
151151

152152
Configuration defaults:
153153

@@ -160,6 +160,11 @@ OAuthTokenProvider.configure({
160160
});
161161
```
162162

163+
#### OAuthToken
164+
165+
If you want to manage the `token` yourself you can use `OAuthToken` service.
166+
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.
167+
163168
## Contributing & Development
164169

165170
#### Contribute

0 commit comments

Comments
 (0)