Merge pull request #3797 from Infisical/ENG-2690

feat: Lower token lifetime to 1 day (refresh 14 days) and fix CLI refresh token functionality
This commit is contained in:
x032205
2025-06-19 12:05:24 -04:00
committed by GitHub
21 changed files with 77 additions and 67 deletions
@@ -16,7 +16,7 @@ export interface IsCliLoginSuccessful {
loginResponse?: {
email: string;
privateKey: string;
JTWToken: string;
JWTToken: string;
};
success: boolean;
}
@@ -131,7 +131,7 @@ const attemptLogin = async ({
loginResponse: {
email,
privateKey,
JTWToken: token
JWTToken: token
},
success: true
});
@@ -14,7 +14,7 @@ interface IsMfaLoginSuccessful {
success: boolean;
loginResponse: {
privateKey: string;
JTWToken: string;
JWTToken: string;
};
}
@@ -95,7 +95,7 @@ const attemptLoginMfa = async ({
success: true,
loginResponse: {
privateKey,
JTWToken: token
JWTToken: token
}
});
} catch (err) {