Brock
09/13/2021, 7:09 PMpublic.users
table will not have a new line until you insert one. So the uid
of the row in auth.users
will match the foreign key of user_id
in public.users
. So they should be unique and not repeat. Once a user registers you can redirect them to say /profiles
and from there query for their session.user.id
in the public.users
table and if it does not exist, this is a new user. Of course this is just one way and I am sure there are other, more effective ways.jbergius
09/13/2021, 7:13 PMBrock
09/13/2021, 7:13 PMfirst_name
or last_name
that does not get automatically field by the triggerjbergius
09/13/2021, 7:18 PMjbergius
09/13/2021, 7:20 PMjbergius
09/13/2021, 7:21 PMBrock
09/13/2021, 7:23 PMjbergius
09/13/2021, 7:27 PM