https://supabase.com/ logo
#help
Title
# help
m

meluiz

06/12/2022, 8:17 PM
How can i get user info on relationship?
n

Needle

06/12/2022, 8:17 PM
Hello @meluiz! 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.
m

meluiz

06/12/2022, 8:18 PM
posted_by is relationed with user
g

garyaustin

06/12/2022, 8:20 PM
You would need set a public table with copy of the user info you will be using. Then insert in that table with a trigger function. auth.users is not available on the API. https://supabase.com/docs/guides/auth/managing-user-data
m

meluiz

06/12/2022, 8:26 PM
Is it the same when i use github authentication login, for example?
g

garyaustin

06/12/2022, 8:26 PM
Yes that will do an insert on the auth.users table you can trigger on.