Skip to content

Commit

Permalink
lint fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
Joerger committed Dec 3, 2024
1 parent 2452733 commit 0d9623a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion web/packages/teleport/src/services/api/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down
4 changes: 2 additions & 2 deletions web/packages/teleport/src/services/auth/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
}
}

Expand Down
2 changes: 1 addition & 1 deletion web/packages/teleport/src/services/user/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down

0 comments on commit 0d9623a

Please sign in to comment.