Auth Admin CreateUser() and SQL function
i've created a component on my app so a admin can create a user (normal sign-ups are disabled)
ive also got a trigger which runs a function AFTER the data is input into the auth.users
function:
this runs fine other than the org_id being picked up and added into the public.users table, it just displays as an empty NULL
in my public.users the org_id(UUID type) is a fkey to my organisations table
ive also got a trigger which runs a function AFTER the data is input into the auth.users
function:
this runs fine other than the org_id being picked up and added into the public.users table, it just displays as an empty NULL
in my public.users the org_id(UUID type) is a fkey to my organisations table