Merge pull request #3827 from Infisical/fix/cli-jwt-issue

Fix CLI issue
This commit is contained in:
Maidul Islam
2025-06-19 17:33:37 -04:00
committed by GitHub
4 changed files with 9 additions and 2 deletions
@@ -97,6 +97,7 @@ export const PasswordStep = ({
privateKey,
email,
JWTToken: token,
JTWToken: token, // CLI Versions 0.41.85 and below expect "JTWToken"
refreshToken
};
await instance.post(cliUrl, payload).catch(() => {
@@ -210,6 +211,7 @@ export const PasswordStep = ({
const payload = {
...isCliLoginSuccessful.loginResponse,
JWTToken: token,
JTWToken: token, // CLI Versions 0.41.85 and below expect "JTWToken"
refreshToken
};
await instance.post(cliUrl, payload).catch(() => {
@@ -150,6 +150,7 @@ export const SelectOrganizationSection = () => {
const payload = {
JWTToken: token,
JTWToken: token, // CLI Versions 0.41.85 and below expect "JTWToken"
email: user?.email,
privateKey,
refreshToken