From fb8c772cefe2d5257f39d2b00759406a87f6042a Mon Sep 17 00:00:00 2001 From: joerger Date: Mon, 9 Dec 2024 17:18:01 -0800 Subject: [PATCH] Fix lint. --- .../teleport/src/components/AuthnDialog/AuthnDialog.test.tsx | 3 +-- web/packages/teleport/src/config.ts | 5 +---- web/packages/teleport/src/lib/EventEmitterMfaSender.ts | 5 +---- web/packages/teleport/src/lib/tdp/client.ts | 1 - web/packages/teleport/src/lib/term/tty.ts | 1 - web/packages/teleport/src/lib/useMfa.ts | 2 +- 6 files changed, 4 insertions(+), 13 deletions(-) diff --git a/web/packages/teleport/src/components/AuthnDialog/AuthnDialog.test.tsx b/web/packages/teleport/src/components/AuthnDialog/AuthnDialog.test.tsx index e551bbaee929b..d7577b2af823f 100644 --- a/web/packages/teleport/src/components/AuthnDialog/AuthnDialog.test.tsx +++ b/web/packages/teleport/src/components/AuthnDialog/AuthnDialog.test.tsx @@ -16,8 +16,7 @@ * along with this program. If not, see . */ -import React from 'react'; -import { render, screen, fireEvent, waitFor } from 'design/utils/testing'; +import { fireEvent, render, screen } from 'design/utils/testing'; import { makeDefaultMfaState, MfaState } from 'teleport/lib/useMfa'; diff --git a/web/packages/teleport/src/config.ts b/web/packages/teleport/src/config.ts index f631cde2fba57..7819b223c17ba 100644 --- a/web/packages/teleport/src/config.ts +++ b/web/packages/teleport/src/config.ts @@ -34,10 +34,7 @@ import type { import type { SortType } from 'teleport/services/agents'; import type { RecordingType } from 'teleport/services/recordings'; -import type { - MfaChallengeResponse, - WebauthnAssertionResponse, -} from './services/mfa'; +import type { MfaChallengeResponse } from './services/mfa'; import type { PluginKind, Regions, diff --git a/web/packages/teleport/src/lib/EventEmitterMfaSender.ts b/web/packages/teleport/src/lib/EventEmitterMfaSender.ts index 656ac29dc77fe..2753251121061 100644 --- a/web/packages/teleport/src/lib/EventEmitterMfaSender.ts +++ b/web/packages/teleport/src/lib/EventEmitterMfaSender.ts @@ -18,10 +18,7 @@ import { EventEmitter } from 'events'; -import { - MfaChallengeResponse, - WebauthnAssertionResponse, -} from 'teleport/services/mfa'; +import { MfaChallengeResponse } from 'teleport/services/mfa'; class EventEmitterMfaSender extends EventEmitter { constructor() { diff --git a/web/packages/teleport/src/lib/tdp/client.ts b/web/packages/teleport/src/lib/tdp/client.ts index ef44f0cce0f3a..b6ab1264b185d 100644 --- a/web/packages/teleport/src/lib/tdp/client.ts +++ b/web/packages/teleport/src/lib/tdp/client.ts @@ -57,7 +57,6 @@ import type { SyncKeys, SharedDirectoryTruncateResponse, } from './codec'; -import type { WebauthnAssertionResponse } from 'teleport/services/mfa'; export enum TdpClientEvent { TDP_CLIENT_SCREEN_SPEC = 'tdp client screen spec', diff --git a/web/packages/teleport/src/lib/term/tty.ts b/web/packages/teleport/src/lib/term/tty.ts index bb6558e187f2a..a7076dd04e5b1 100644 --- a/web/packages/teleport/src/lib/term/tty.ts +++ b/web/packages/teleport/src/lib/term/tty.ts @@ -19,7 +19,6 @@ import Logger from 'shared/libs/logger'; import { EventEmitterMfaSender } from 'teleport/lib/EventEmitterMfaSender'; -import { WebauthnAssertionResponse } from 'teleport/services/mfa'; import { AuthenticatedWebSocket } from 'teleport/lib/AuthenticatedWebSocket'; import { MfaChallengeResponse } from 'teleport/services/mfa'; diff --git a/web/packages/teleport/src/lib/useMfa.ts b/web/packages/teleport/src/lib/useMfa.ts index 69971b36621a6..4b62b1968672d 100644 --- a/web/packages/teleport/src/lib/useMfa.ts +++ b/web/packages/teleport/src/lib/useMfa.ts @@ -77,6 +77,6 @@ export function makeDefaultMfaState(): MfaState { mfaChallenge: null, submitAttempt: makeEmptyAttempt(), submitMfa: () => null, - mfaRequired: false, + mfaRequired: true, }; }