Best way to add additional data in public.users table #556
Unanswered
inbytesdevteam
asked this question in
Questions
Replies: 1 comment 2 replies
-
For now the recommended way is to to an
Make sure you use a trigger to insert the new user! Like this: |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'd like to be able to get a user's first name, last name, and username as they sign up. In the guide, it says that I can create a
public.users
table with theuuid
.Is it possible to add in the details above when using
auth.signUp()
? Or should I useauth.update()
to update after sign up? I'd like for it to show an error if the username is already taken. The problem I find with having two commands is I may have to delete the entry in theauth.users
table if adding it topublic.users
fails. I'm not sure if I'm missing anything. What's the best way to go about this?Beta Was this translation helpful? Give feedback.
All reactions