Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

Fix CLI issue

x03220573fe2659b562
diff --git a/cli/packages/models/cli.go b/cli/packages/models/cli.go
index 9a3ff85b23..4785d81f1a 100644
--- a/cli/packages/models/cli.go
+++ b/cli/packages/models/cli.go
@@ -5,7 +5,7 @@ import "time"
type UserCredentials struct {
Email string `json:"email"`
PrivateKey string `json:"privateKey"`
- JWTToken string `json:"JWTToken"`
+ JWTToken string `json:"JTWToken"`
RefreshToken string `json:"refreshToken"`
}
diff --git a/frontend/src/components/utilities/attemptCliLogin.ts b/frontend/src/components/utilities/attemptCliLogin.ts
index 914a4c266f..d897ebeaae 100644
--- a/frontend/src/components/utilities/attemptCliLogin.ts
+++ b/frontend/src/components/utilities/attemptCliLogin.ts
@@ -16,7 +16,7 @@ export interface IsCliLoginSuccessful {
loginResponse?: {
email: string;
privateKey: string;
- JWTToken: string;
+ JTWToken: string;
};
success: boolean;
}
@@ -131,7 +131,7 @@ const attemptLogin = async ({
loginResponse: {
email,
privateKey,
- JWTToken: token
+ JTWToken: token
},
success: true
});
diff --git a/frontend/src/components/utilities/attemptCliLoginMfa.ts b/frontend/src/components/utilities/attemptCliLoginMfa.ts
index 2a5de18ddf..14a61d817e 100644
--- a/frontend/src/components/utilities/attemptCliLoginMfa.ts
+++ b/frontend/src/components/utilities/attemptCliLoginMfa.ts
@@ -14,7 +14,7 @@ interface IsMfaLoginSuccessful {
success: boolean;
loginResponse: {
privateKey: string;
- JWTToken: string;
+ JTWToken: string;
};
}
@@ -95,7 +95,7 @@ const attemptLoginMfa = async ({
success: true,
loginResponse: {
privateKey,
- JWTToken: token
+ JTWToken: token
}
});
} catch (err) {
diff --git a/frontend/src/pages/auth/LoginPage/components/PasswordStep/PasswordStep.tsx b/frontend/src/pages/auth/LoginPage/components/PasswordStep/PasswordStep.tsx
index e175ef7f21..ee8e334bf6 100644
--- a/frontend/src/pages/auth/LoginPage/components/PasswordStep/PasswordStep.tsx
+++ b/frontend/src/pages/auth/LoginPage/components/PasswordStep/PasswordStep.tsx
@@ -96,7 +96,7 @@ export const PasswordStep = ({
const payload = {
privateKey,
email,
- JWTToken: token,
+ JTWToken: token,
refreshToken
};
await instance.post(cliUrl, payload).catch(() => {
@@ -209,7 +209,7 @@ export const PasswordStep = ({
const instance = axios.create();
const payload = {
...isCliLoginSuccessful.loginResponse,
- JWTToken: token,
+ JTWToken: token,
refreshToken
};
await instance.post(cliUrl, payload).catch(() => {
diff --git a/frontend/src/pages/auth/SelectOrgPage/SelectOrgSection.tsx b/frontend/src/pages/auth/SelectOrgPage/SelectOrgSection.tsx
index ead8b14011..014b4b1dd6 100644
--- a/frontend/src/pages/auth/SelectOrgPage/SelectOrgSection.tsx
+++ b/frontend/src/pages/auth/SelectOrgPage/SelectOrgSection.tsx
@@ -149,7 +149,7 @@ export const SelectOrganizationSection = () => {
}
const payload = {
- JWTToken: token,
+ JTWToken: token,
email: user?.email,
privateKey,
refreshToken