erp-cicd/my-access-hub-main/supabase/migrations/20250810103405_927b0732-58a5-4007-8172-1f0b78082af9.sql
Ali 20e95c2fb6
Some checks failed
Build & Deploy Frontend / build-push-deploy (push) Failing after 15s
pushing all
2025-08-30 11:51:11 +05:30

14 lines
487 B
SQL

-- Fix security settings to resolve linter warnings
-- 1. Set OTP expiry to recommended threshold (1 hour = 3600 seconds)
UPDATE auth.config
SET value = '3600'::text
WHERE parameter = 'OTP_EXPIRY';
-- 2. Enable leaked password protection
UPDATE auth.config
SET value = 'true'::text
WHERE parameter = 'SECURITY_REFRESH_TOKEN_ROTATION_ENABLED';
-- Note: Some security settings may need to be configured via Supabase dashboard
-- The above settings will help reduce security warnings