CREATE EXTENSION IF NOT EXISTS pg_net;CREATE OR REPLACE FUNCTION stream_auth_logs()RETURNS trigger AS $$BEGIN select net.http_post( url:='...', body:='{"hello": "world"}'::jsonb ); RETURN NEW;END;$$ LANGUAGE plpgsql;DROP TRIGGER stream_auth_logs_trigger on auth.audit_log_entries;CREATE TRIGGER stream_auth_logs_triggerAFTER INSERT ON auth.audit_log_entriesFOR EACH ROWEXECUTE PROCEDURE stream_auth_logs();
CREATE EXTENSION IF NOT EXISTS pg_net;CREATE OR REPLACE FUNCTION stream_auth_logs()RETURNS trigger AS $$BEGIN select net.http_post( url:='...', body:='{"hello": "world"}'::jsonb ); RETURN NEW;END;$$ LANGUAGE plpgsql;DROP TRIGGER stream_auth_logs_trigger on auth.audit_log_entries;CREATE TRIGGER stream_auth_logs_triggerAFTER INSERT ON auth.audit_log_entriesFOR EACH ROWEXECUTE PROCEDURE stream_auth_logs();
Bug report Describe the bug When trying to access data from some API endpoints, like this: /rest/v1/leads?select=* I get this error: { "message": "permission denied for t...
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.