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';