Revert back to JTWToken

This commit is contained in:
x032205
2025-06-19 18:55:41 -04:00
parent 66df285245
commit 9445f717f4
5 changed files with 8 additions and 15 deletions
@@ -16,8 +16,7 @@ export interface IsCliLoginSuccessful {
loginResponse?: {
email: string;
privateKey: string;
JWTToken: string;
JTWToken: string; // CLI Versions 0.41.85 and below expect "JTWToken"
JTWToken: string;
};
success: boolean;
}
@@ -132,8 +131,7 @@ const attemptLogin = async ({
loginResponse: {
email,
privateKey,
JWTToken: token,
JTWToken: token // CLI Versions 0.41.85 and below expect "JTWToken"
JTWToken: token
},
success: true
});
@@ -14,8 +14,7 @@ interface IsMfaLoginSuccessful {
success: boolean;
loginResponse: {
privateKey: string;
JWTToken: string;
JTWToken: string; // CLI Versions 0.41.85 and below expect "JTWToken"
JTWToken: string;
};
}
@@ -96,8 +95,7 @@ const attemptLoginMfa = async ({
success: true,
loginResponse: {
privateKey,
JWTToken: token,
JTWToken: token // CLI Versions 0.41.85 and below expect "JTWToken"
JTWToken: token
}
});
} catch (err) {