Skip to content

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

Fix merge conflicts

Tuan Dangb551ee50e722
diff --cc backend/src/validation/auth.ts
index 31f7078752,e723ba7d9d..b2bea1a4c4
--- a/backend/src/validation/auth.ts
+++ b/backend/src/validation/auth.ts
@@@ -143,7 -145,9 +145,9 @@@ export const UpdateUniversalAuthToIdent
.optional(),
accessTokenTTL: z.number().int().min(0).optional(),
accessTokenNumUsesLimit: z.number().int().min(0).optional(),
- accessTokenMaxTTL: z.number().int().min(0).optional(),
+ accessTokenMaxTTL: z.number().int().refine(value => value !== 0, {
+ message: "accessTokenMaxTTL must have a non zero number",
- }).default(2592000),
++ }).optional(),
}),
});
diff --cc frontend/src/views/Org/MembersPage/components/OrgIdentityTab/components/IdentitySection/IdentityUniversalAuthForm.tsx
index 8090212f70,6d327f9d47..bfc88bf7e0
--- a/frontend/src/views/Org/MembersPage/components/OrgIdentityTab/components/IdentitySection/IdentityUniversalAuthForm.tsx
+++ b/frontend/src/views/Org/MembersPage/components/OrgIdentityTab/components/IdentitySection/IdentityUniversalAuthForm.tsx
@@@ -88,8 -88,8 +88,8 @@@ export const IdentityUniversalAuthForm
} = useForm<FormData>({
resolver: yupResolver(schema),
defaultValues: {
- accessTokenTTL: "2592000",
+ accessTokenTTL: "7200",
- accessTokenMaxTTL: "0",
+ accessTokenMaxTTL: "2592000",
accessTokenNumUsesLimit: "0",
clientSecretTrustedIps: [{
ipAddress: "0.0.0.0/0"
@@@ -112,7 -112,7 +112,7 @@@
} = useFieldArray({ control, name: "accessTokenTrustedIps" });
useEffect(() => {
-- if (data) { // TODO: fix data type
++ if (data) {
reset({
accessTokenTTL: String(data.accessTokenTTL),
accessTokenMaxTTL: String(data.accessTokenMaxTTL),
@@@ -136,8 -136,8 +136,8 @@@
});
} else {
reset({
- accessTokenTTL: "2592000",
+ accessTokenTTL: "7200",
- accessTokenMaxTTL: "7200",
+ accessTokenMaxTTL: "2592000",
accessTokenNumUsesLimit: "0",
clientSecretTrustedIps: [{
ipAddress: "0.0.0.0/0"