From ac5780572accdffcb065a352fa2b6694e5a56fa5 Mon Sep 17 00:00:00 2001 From: Benjamin Tang <83954069+benjamin-tang-pusher@users.noreply.github.com> Date: Tue, 19 Sep 2023 10:33:07 -0400 Subject: [PATCH] Tidy HttpUserAuthenticator description readme --- README.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 3e5a555..fd51bd3 100644 --- a/README.md +++ b/README.md @@ -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; @@ -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: