how do i use a trigger to insert data into a table after a user signs up
I'm trying to automatically insert data into a table whenever a new row is added to the
auth.users
table. I've created a function to insert this data, and I've also set up a trigger to activate this function when the insert to auth.users
happens.
However, I'm currently encountering an error with this setup. I've included both the function code and the trigger code for reference
this doesn't work for signing up with oauth and magic links in my application
rls is disabled on this table for dev purposes
currently getting this error from auth logs


1 Reply
Your function needs to be security define type. There is an example in most of the guides, auth user management docs and the SQL editor samples.