Skip to content

Commit e09edda

Browse files
committed
Merge pull request #116 from lukewaite/patch-2
tweak readme formatting
2 parents fb5bd0e + 46b25d7 commit e09edda

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ the configuration object (this is the requested URL, payload and parameters)
3030
of every HTTP 401 response is buffered and everytime it happens, the
3131
`event:auth-loginRequired` message is broadcasted from $rootScope.
3232

33-
The `authService` has only one method: #loginConfirmed().
33+
The `authService` has only one method: `loginConfirmed()`.
3434
You are responsible to invoke this method after user logged in. You may optionally pass in
3535
a data argument to the loginConfirmed method which will be passed on to the loginConfirmed
3636
$broadcast. This may be useful, for example if you need to pass through details of the user
@@ -39,11 +39,11 @@ to HTTP 401 response.
3939

4040
In the event that a requested resource returns an HTTP 403 response (i.e. the user is
4141
authenticated but not authorized to access the resource), the user's request is discarded and
42-
the `event:auth-forbidden` message is broadcasted from $rootScope.
42+
the `event:auth-forbidden` message is broadcast from $rootScope.
4343

4444
#### Ignoring the 401 interceptor
4545

46-
Sometimes you might not want the intercepter to intercept a request even if one returns 401 or 403. In a case like this you can add `ignoreAuthModule: true` to the request config. A common use case for this would be, for example, a login request which returns 401 if the login credentials are invalid.
46+
Sometimes you might not want the interceptor to intercept a request even if one returns 401 or 403. In a case like this you can add `ignoreAuthModule: true` to the request config. A common use case for this would be, for example, a login request which returns 401 if the login credentials are invalid.
4747

4848
###Typical use case:
4949

@@ -70,7 +70,7 @@ You can supply additional data to observers across your application who are list
7070
Use the `authService.loginConfirmed([data])` method to emit data with your login event.
7171

7272
####Updating [$http(config)](https://docs.angularjs.org/api/ng/service/$http):
73-
Successful login means that the previous request are ready to be fired again, however now that login has occured certain aspects of the previous requests might need to be modified on the fly. This is particularly important in a token based authentication scheme where an authorization token should be added to the header.
73+
Successful login means that the previous request are ready to be fired again, however now that login has occurred certain aspects of the previous requests might need to be modified on the fly. This is particularly important in a token based authentication scheme where an authorization token should be added to the header.
7474

7575
The `loginConfirmed` method supports the injection of an Updater function that will apply changes to the http config object.
7676

0 commit comments

Comments
 (0)