mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-14 06:29:37 +00:00
Improvements
This commit is contained in:
@@ -16,7 +16,8 @@ export interface IsCliLoginSuccessful {
|
||||
loginResponse?: {
|
||||
email: string;
|
||||
privateKey: string;
|
||||
JTWToken: string;
|
||||
JWTToken: string;
|
||||
JTWToken: string; // CLI Versions 0.41.85 and below expect "JTWToken"
|
||||
};
|
||||
success: boolean;
|
||||
}
|
||||
@@ -131,7 +132,8 @@ const attemptLogin = async ({
|
||||
loginResponse: {
|
||||
email,
|
||||
privateKey,
|
||||
JTWToken: token
|
||||
JWTToken: token,
|
||||
JTWToken: token // CLI Versions 0.41.85 and below expect "JTWToken"
|
||||
},
|
||||
success: true
|
||||
});
|
||||
|
||||
@@ -14,7 +14,8 @@ interface IsMfaLoginSuccessful {
|
||||
success: boolean;
|
||||
loginResponse: {
|
||||
privateKey: string;
|
||||
JTWToken: string;
|
||||
JWTToken: string;
|
||||
JTWToken: string; // CLI Versions 0.41.85 and below expect "JTWToken"
|
||||
};
|
||||
}
|
||||
|
||||
@@ -95,7 +96,8 @@ const attemptLoginMfa = async ({
|
||||
success: true,
|
||||
loginResponse: {
|
||||
privateKey,
|
||||
JTWToken: token
|
||||
JWTToken: token,
|
||||
JTWToken: token // CLI Versions 0.41.85 and below expect "JTWToken"
|
||||
}
|
||||
});
|
||||
} catch (err) {
|
||||
|
||||
Reference in New Issue
Block a user