hey, I just want to know if I pass data in signup,...
# help
h
hey, I just want to know if I pass data in signup, how they'll be handle by supabase ? if there is a public profiles table, supabase will auto insert a new row with passed datas ?
n
Hello @Hakkā! This thread has been automatically created from your message in #843999948717555735 a few seconds ago. We have already mentioned the @User so that they can see your message and help you as soon as possible! Want to unsubscribe from this thread? Right-click the thread in Discord (or use the ``...`` menu) and select "Leave Thread" to unsubscribe from future updates. Want to change the title? Use the ``/title`` command! We have solved your problem? Click the button below to archive it.
🆕 data on signup
g
Everything in auth. goes to the auth.users table. You need to create a trigger function if you want copied to a public table. https://supabase.com/docs/guides/auth/managing-user-data
n
data on signup
h
oh okey okey so the datas which are in auth.users table and when I'm logged in, could I have access to them in user from session returned in onAuthStateChange() ? (because I'm handle the context with on the change)
g
The app and user metadata come back in sessions user object.
h
okey thanks, which are the best ways to do this ? trigger a function or directly put last_name and first_name on data from signIn ?