diff --git a/src/gateway/server/ws-connection/message-handler.ts b/src/gateway/server/ws-connection/message-handler.ts index 49f70915992..e0116190009 100644 --- a/src/gateway/server/ws-connection/message-handler.ts +++ b/src/gateway/server/ws-connection/message-handler.ts @@ -674,18 +674,14 @@ export function attachGatewayWsMessageHandler(params: { authOk, authMethod, }); - // auth.mode=none disables all authentication — device pairing is an - // auth mechanism and must also be skipped when the operator opted out. const skipPairing = - resolvedAuth.mode === "none" || shouldSkipBackendSelfPairing({ connectParams, isLocalClient, hasBrowserOriginHeader, sharedAuthOk, authMethod, - }) || - shouldSkipControlUiPairing(controlUiAuthPolicy, role, trustedProxyAuthOk); + }) || shouldSkipControlUiPairing(controlUiAuthPolicy, role, trustedProxyAuthOk); if (device && devicePublicKey && !skipPairing) { const formatAuditList = (items: string[] | undefined): string => { if (!items || items.length === 0) {