From 8e7ea96efe3fb7e13a1f3558c33234256e96af22 Mon Sep 17 00:00:00 2001 From: Nicole Jung <31713368+purplenicole730@users.noreply.github.com> Date: Fri, 29 Sep 2023 11:35:22 -0400 Subject: [PATCH] RSDK-5032 - strip authentity of protocol string (#166) Co-authored-by: Maxim Pertsov --- src/robot/dial.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/robot/dial.ts b/src/robot/dial.ts index 26b3b6b80..5653da3cf 100644 --- a/src/robot/dial.ts +++ b/src/robot/dial.ts @@ -156,6 +156,9 @@ export const createRobotClient = async ( conf: DialConf ): Promise => { let client; + if (conf.authEntity) { + conf.authEntity = new URL(conf.authEntity).host; + } if (conf.reconnectMaxAttempts && !isPosInt(conf.reconnectMaxAttempts)) { throw new Error(