Skip to content

Commit

Permalink
Tidy HttpUserAuthenticator description readme
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamin-tang-pusher authored Sep 19, 2023
1 parent c5220d2 commit ac57805
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -958,14 +958,14 @@ Allows you to send events to a user based on user id or terminating a user’s c

The library provides an `HttpUserAuthenticator` implementation of `IUserAuthenticator` which makes an HTTP `POST` request to an authenticating endpoint. However, you can implement your own authentication mechanism if required.

Setting up a authenticated user
Setting up an authenticated user

```cs

// Create client
Pusher pusher = new Pusher(Config.AppKey, new PusherOptions
{
UserAuthenticator = new HttpUserAuthenticator("https:/some.authenticator.com/auth")
UserAuthenticator = new HttpUserAuthenticator("https://some.authenticator.com/auth")
Cluster = Config.Cluster,
});
pusher.Error += ErrorHandler;
Expand All @@ -981,8 +981,7 @@ await pusher.User.SigninDoneAsync();

### HttpUserAuthenticator

The implementation of the `HttpUserAuthenticator` class which provides the default implementation of an
`IUserAuthenticator` has been modified to support the setting of an authentication header.
The `HttpUserAuthenticator` class supports the setting of an authentication header.

Here is an example of how to set the bearer token in an authentication header:

Expand Down

0 comments on commit ac57805

Please sign in to comment.