Insert user to auth.users, get the latest id inserted and then add additional informations to public.profiles based on that last id? #5287
Unanswered
sadiki-o
asked this question in
Feature Requests
Replies: 1 comment 11 replies
-
Someone was trying to import users yesterday and it is more complicated than just inserting stuff into the user table... appears other tables are involved. Note they gave up and just curl for what they needed calling auth. edit: also won't you be calling this function as a non-logged in user? Would need security definer on the function and then the whole thing does not seem like a good idea... |
Beta Was this translation helpful? Give feedback.
11 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey guys i am trying to get this function to work, help please
note: if i have tried to create a user with signup and then add additional informations to public.profiles but when the sigup function runs in front end it returns a user and whatever comes after it never get to execute that is why i thought about making a function that does all in one.
Function definition:
Beta Was this translation helpful? Give feedback.
All reactions