Skip to content

Commit

Permalink
add to sql to add webhook
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewwong525 committed Mar 3, 2024
1 parent 9fd6d24 commit 5c0a7ad
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions supabase/seed.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
-- add handle_user_modify webhook
CREATE TRIGGER handle_user_modify AFTER INSERT OR DELETE OR UPDATE ON auth.users FOR EACH ROW EXECUTE FUNCTION supabase_functions.http_request('http://host.docker.internal:54321/functions/v1/on_user_modify', 'POST', '{"Content-type":"application/json","Authorization":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZS1kZW1vIiwicm9sZSI6InNlcnZpY2Vfcm9sZSIsImV4cCI6MTk4MzgxMjk5Nn0.EGIM96RAZx35lJzdJsyH-qQwv8Hdp7fsn3W0YpN81IU"}', '{}', '1000');

0 comments on commit 5c0a7ad

Please sign in to comment.