mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
revert defaults to 30 days
This commit is contained in:
@@ -88,7 +88,7 @@ export const IdentityUniversalAuthForm = ({
|
||||
} = useForm<FormData>({
|
||||
resolver: yupResolver(schema),
|
||||
defaultValues: {
|
||||
accessTokenTTL: "7200",
|
||||
accessTokenTTL: "2592000",
|
||||
accessTokenMaxTTL: "2592000",
|
||||
accessTokenNumUsesLimit: "0",
|
||||
clientSecretTrustedIps: [{
|
||||
@@ -136,7 +136,7 @@ export const IdentityUniversalAuthForm = ({
|
||||
});
|
||||
} else {
|
||||
reset({
|
||||
accessTokenTTL: "7200",
|
||||
accessTokenTTL: "2592000",
|
||||
accessTokenMaxTTL: "2592000",
|
||||
accessTokenNumUsesLimit: "0",
|
||||
clientSecretTrustedIps: [{
|
||||
@@ -211,7 +211,7 @@ export const IdentityUniversalAuthForm = ({
|
||||
<form onSubmit={handleSubmit(onFormSubmit)}>
|
||||
<Controller
|
||||
control={control}
|
||||
defaultValue="7200"
|
||||
defaultValue="2592000"
|
||||
name="accessTokenTTL"
|
||||
render={({ field, fieldState: { error } }) => (
|
||||
<FormControl
|
||||
@@ -221,7 +221,7 @@ export const IdentityUniversalAuthForm = ({
|
||||
>
|
||||
<Input
|
||||
{...field}
|
||||
placeholder="7200"
|
||||
placeholder="2592000"
|
||||
type="number"
|
||||
min="0"
|
||||
step="1"
|
||||
|
||||
Reference in New Issue
Block a user