From 33a27f87a04c7fd0f6dc919c03984cbadb9b2054 Mon Sep 17 00:00:00 2001 From: Agata Walukiewicz Date: Thu, 10 Nov 2022 10:30:00 +0100 Subject: [PATCH] fix authorization error message --- dist/node/pusher.js | 2 +- dist/web/pusher-with-encryption.js | 2 +- dist/web/pusher.js | 2 +- src/runtimes/isomorphic/auth/xhr_auth.ts | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dist/node/pusher.js b/dist/node/pusher.js index 44a570fb6..6f0a20cbe 100644 --- a/dist/node/pusher.js +++ b/dist/node/pusher.js @@ -10255,7 +10255,7 @@ var ajax = function (context, query, authOptions, authRequestType, callback) { suffix = url_store.buildLogSuffix('authenticationEndpoint'); break; case AuthRequestType.ChannelAuthorization: - suffix = "Clients must be authenticated to join private or presence channels. " + url_store.buildLogSuffix('authorizationEndpoint'); + suffix = "Clients must be authorized to join private or presence channels. " + url_store.buildLogSuffix('authorizationEndpoint'); break; } callback(new HTTPAuthError(xhr.status, "Unable to retrieve auth string from " + authRequestType.toString() + " endpoint - " + diff --git a/dist/web/pusher-with-encryption.js b/dist/web/pusher-with-encryption.js index 4dc384fa7..e29be48c3 100644 --- a/dist/web/pusher-with-encryption.js +++ b/dist/web/pusher-with-encryption.js @@ -3287,7 +3287,7 @@ var ajax = function (context, query, authOptions, authRequestType, callback) { suffix = url_store.buildLogSuffix('authenticationEndpoint'); break; case AuthRequestType.ChannelAuthorization: - suffix = "Clients must be authenticated to join private or presence channels. " + url_store.buildLogSuffix('authorizationEndpoint'); + suffix = "Clients must be authorized to join private or presence channels. " + url_store.buildLogSuffix('authorizationEndpoint'); break; } callback(new HTTPAuthError(xhr.status, "Unable to retrieve auth string from " + authRequestType.toString() + " endpoint - " + diff --git a/dist/web/pusher.js b/dist/web/pusher.js index b844e3305..fe0a6ef67 100644 --- a/dist/web/pusher.js +++ b/dist/web/pusher.js @@ -885,7 +885,7 @@ var ajax = function (context, query, authOptions, authRequestType, callback) { suffix = url_store.buildLogSuffix('authenticationEndpoint'); break; case AuthRequestType.ChannelAuthorization: - suffix = "Clients must be authenticated to join private or presence channels. " + url_store.buildLogSuffix('authorizationEndpoint'); + suffix = "Clients must be authorized to join private or presence channels. " + url_store.buildLogSuffix('authorizationEndpoint'); break; } callback(new HTTPAuthError(xhr.status, "Unable to retrieve auth string from " + authRequestType.toString() + " endpoint - " + diff --git a/src/runtimes/isomorphic/auth/xhr_auth.ts b/src/runtimes/isomorphic/auth/xhr_auth.ts index 0ff386b0b..ff252ecb5 100644 --- a/src/runtimes/isomorphic/auth/xhr_auth.ts +++ b/src/runtimes/isomorphic/auth/xhr_auth.ts @@ -60,7 +60,7 @@ const ajax: AuthTransport = function( suffix = UrlStore.buildLogSuffix('authenticationEndpoint'); break; case AuthRequestType.ChannelAuthorization: - suffix = `Clients must be authenticated to join private or presence channels. ${UrlStore.buildLogSuffix( + suffix = `Clients must be authorized to join private or presence channels. ${UrlStore.buildLogSuffix( 'authorizationEndpoint' )}`; break;