diff --git a/packages/ui/src/ui/common/yt-api-init.ts b/packages/ui/src/ui/common/yt-api-init.ts index 814969a28..c43f7f8c4 100644 --- a/packages/ui/src/ui/common/yt-api-init.ts +++ b/packages/ui/src/ui/common/yt-api-init.ts @@ -35,9 +35,7 @@ export function initYTApiClusterParams(cluster: string) { yt.setup.setGlobalOption('secure', true); } - if (config.authentication === 'domain') { - yt.setup.setGlobalOption('authentication', {type: 'domain'}); - } + yt.setup.setGlobalOption('authentication', {type: config.authentication || 'none'}); yt.subscribe('error', onError); }