Güvenlik Doğrulaması,Login Logları

This commit is contained in:
2025-12-29 23:51:25 +03:00
parent 7d55ec93ae
commit 8ba8d2e05e
24 changed files with 1861 additions and 166 deletions

View File

@@ -0,0 +1,21 @@
-- Allow anonymous and authenticated users to insert logs
-- This ensures logging works even if Admin Client (Service Role) fails
create policy "Enable insert for all users"
on public.auth_logs
for insert
with check (true);
create policy "Enable insert for all users"
on public.rate_limits
for insert
with check (true);
create policy "Enable update for all users"
on public.rate_limits
for update
using (true);
create policy "Enable select for all users"
on public.rate_limits
for select
using (true);