AuthApiError: Database error creating new user (seeding and registration blocked) #38900
-
|
Hi Supabase team, I’m running into a consistent issue when trying to create users with supabase.auth.admin.createUser (both via seeding script and the registration form). Error: AuthApiError: Database error creating new user What I’ve tried so far: It looks like my project doesn’t have permission to adjust the auth.users defaults (e.g., setting id to gen_random_uuid()), so I suspect the table might be in a misconfigured state. Question: Thanks a lot for your help 🙏 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
This is almost always your auth triggers. No one on Github can fix your instance, but this is not likely auth.users table as that is protected from change. |
Beta Was this translation helpful? Give feedback.
This is almost always your auth triggers.
Check in the Dashboard Database/Triggers for additional auth.users triggers.
Check the Postgres logs for the exact error the database is getting.
No one on Github can fix your instance, but this is not likely auth.users table as that is protected from change.