Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

Pull master and resolve conflicts

Joshen Lim264d23bbdaa7
diff --cc studio/components/interfaces/Auth/AutoSchemaForm.tsx
index 507dd01afdc,319938ffd76..1a704292d8e
--- a/studio/components/interfaces/Auth/AutoSchemaForm.tsx
+++ b/studio/components/interfaces/Auth/AutoSchemaForm.tsx
@@@ -137,17 -128,7 +139,8 @@@ const AutoSchemaForm = observer(() =>
label="JWT expiry limit"
descriptionText="How long tokens are valid for. Defaults to 3600 (1 hour), maximum 604,800 seconds (one week)."
actions={<span className="text-scale-900 mr-3">seconds</span>}
+ disabled={!canUpdateConfig}
/>
- <InputNumber
- id="SECURITY_REFRESH_TOKEN_REUSE_INTERVAL"
- size="small"
- min={0}
- label="Reuse Interval"
- descriptionText="Time interval where the same refresh token can be used to request for an access token."
- actions={<span className="text-scale-900 mr-3">seconds</span>}
- disabled={!canUpdateConfig}
- />
</FormSectionContent>
</FormSection>
<FormSection header={<FormSectionLabel>Security and Protection</FormSectionLabel>}>
@@@ -155,10 -136,9 +148,10 @@@
<Toggle
id="SECURITY_CAPTCHA_ENABLED"
size="small"
- label="hCaptcha protection"
+ label="Enable hCaptcha protection"
layout="flex"
- descriptionText="If enabled, protects auth endpoints from abuse."
+ descriptionText="Protect authentication endpoints from abuse."
+ disabled={!canUpdateConfig}
/>
{values.SECURITY_CAPTCHA_ENABLED && (
<Input
@@@ -176,6 -155,23 +169,25 @@@
}
/>
)}
+ <Toggle
+ id="REFRESH_TOKEN_ROTATION_ENABLED"
+ size="small"
+ label="Enable automatic reuse detection"
+ layout="flex"
+ descriptionText="Prevent replay attacks from compromised refresh tokens."
++ disabled={!canUpdateConfig}
+ />
+ {values.REFRESH_TOKEN_ROTATION_ENABLED && (
+ <InputNumber
+ id="SECURITY_REFRESH_TOKEN_REUSE_INTERVAL"
+ size="small"
+ min={0}
+ label="Reuse Interval"
+ descriptionText="Time interval where the same refresh token can be used to request for an access token."
+ actions={<span className="text-scale-900 mr-3">seconds</span>}
++ disabled={!canUpdateConfig}
+ />
+ )}
</FormSectionContent>
</FormSection>
</FormPanel>