From 0d9623afcce07c5f6d017f914a196776691e57c7 Mon Sep 17 00:00:00 2001 From: joerger Date: Wed, 27 Nov 2024 11:25:53 -0800 Subject: [PATCH] lint fix. --- web/packages/teleport/src/services/api/api.ts | 2 +- web/packages/teleport/src/services/auth/auth.ts | 4 ++-- web/packages/teleport/src/services/user/user.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/web/packages/teleport/src/services/api/api.ts b/web/packages/teleport/src/services/api/api.ts index 83b2bf84099b4..1048c3333e11c 100644 --- a/web/packages/teleport/src/services/api/api.ts +++ b/web/packages/teleport/src/services/api/api.ts @@ -21,7 +21,7 @@ import auth, { MfaChallengeScope } from 'teleport/services/auth/auth'; import websession from 'teleport/services/websession'; import { storageService } from '../storageService'; -import { MfaChallengeResponse, WebauthnAssertionResponse } from '../mfa'; +import { MfaChallengeResponse } from '../mfa'; import parseError, { ApiError } from './parseError'; diff --git a/web/packages/teleport/src/services/auth/auth.ts b/web/packages/teleport/src/services/auth/auth.ts index 39060c790aa83..410b926d859ba 100644 --- a/web/packages/teleport/src/services/auth/auth.ts +++ b/web/packages/teleport/src/services/auth/auth.ts @@ -296,9 +296,9 @@ const auth = { // whichever method we can succeed with first. if (!mfaType) { if (totpCode) { - mfaType == 'totp'; + mfaType = 'totp'; } else if (challenge.webauthnPublicKey) { - mfaType == 'webauthn'; + mfaType = 'webauthn'; } } diff --git a/web/packages/teleport/src/services/user/user.ts b/web/packages/teleport/src/services/user/user.ts index 85c6f70607d6b..ce2d07c22034e 100644 --- a/web/packages/teleport/src/services/user/user.ts +++ b/web/packages/teleport/src/services/user/user.ts @@ -20,7 +20,7 @@ import api from 'teleport/services/api'; import cfg from 'teleport/config'; import session from 'teleport/services/websession'; -import { MfaChallengeResponse, WebauthnAssertionResponse } from '../mfa'; +import { MfaChallengeResponse } from '../mfa'; import makeUserContext from './makeUserContext'; import { makeResetToken } from './makeResetToken';