diff --git a/server/lib/conversejs/params.ts b/server/lib/conversejs/params.ts index 9efd6f5b..f25335a2 100644 --- a/server/lib/conversejs/params.ts +++ b/server/lib/conversejs/params.ts @@ -79,7 +79,7 @@ async function getConverseJSParams ( let externalAuthOIDC if (userIsConnected !== true) { - if (!remoteConnectionInfos?.externalAuthCompatible) { + if (remoteConnectionInfos && !remoteConnectionInfos.externalAuthCompatible) { options.peertubeHelpers.logger.debug( 'The remote livechat plugin is not compatible with external authentication, not enabling the feature' )