© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•10mo ago•
7 replies
duncandewet

Auth trigger didn't run locally

I have a very simple trigger to create a row in a
profiles
profiles
table
after insert on auth.users
after insert on auth.users
, almost exactly the same as the example here. It works as expected in the hosted Supabase environment.

I then followed the instructions here to pull my database schema from the hosted environment and run Supabase locally. Everything from the hosted database schema came across to the locally running environment as expected (including the function/trigger mentioned above, which I can see in the locally running Supabase console).

However, when I pointed my app at the locally running Supabase environment and created an account, an auth user got created but a row in the
profiles
profiles
table did not get created (like it does in the hosted Supabase environment), i.e. the trigger appeared to not get executed in the local environment.

How would I go about beginning to debug this?
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Auth.trigger
SupabaseSSupabase / help-and-questions
6mo ago
Can't use vault inside trigger locally
SupabaseSSupabase / help-and-questions
5mo ago
Can't get auth trigger working
SupabaseSSupabase / help-and-questions
5mo ago
Do trigger functions work locally?
SupabaseSSupabase / help-and-questions
4y ago