mirror of
https://github.com/eyaltoledano/claude-task-master.git
synced 2026-01-30 06:12:05 +00:00
chore: apply requested changes (#1442)
This commit is contained in:
@@ -551,13 +551,15 @@ Examples:
|
||||
private async handleMFAVerification(
|
||||
mfaError: AuthenticationError
|
||||
): Promise<AuthCredentials> {
|
||||
if (!mfaError.mfaChallenge) {
|
||||
if (!mfaError.mfaChallenge?.factorId) {
|
||||
throw new AuthenticationError(
|
||||
'MFA challenge information missing',
|
||||
'MFA_VERIFICATION_FAILED'
|
||||
);
|
||||
}
|
||||
|
||||
const { factorId } = mfaError.mfaChallenge;
|
||||
|
||||
console.log(
|
||||
chalk.yellow(
|
||||
'\n⚠️ Multi-factor authentication is enabled on your account'
|
||||
@@ -571,7 +573,7 @@ Examples:
|
||||
|
||||
// Use @tm/core's retry logic - presentation layer just handles UI
|
||||
const result = await this.authManager.verifyMFAWithRetry(
|
||||
mfaError.mfaChallenge.factorId,
|
||||
factorId,
|
||||
async () => {
|
||||
// Prompt for MFA code
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user