HarryET
12/20/2021, 9:37 PMHarryET
12/20/2021, 10:24 PMflorian-lefebvre
12/21/2021, 12:42 PMHarryET
12/21/2021, 12:52 PMHarryET
12/21/2021, 12:52 PMeverconfusedguy
12/21/2021, 12:55 PMHarryET
12/21/2021, 12:57 PMeverconfusedguy
12/21/2021, 12:58 PMHarryET
12/21/2021, 12:59 PMMike_
12/21/2021, 7:10 PMMike_
12/21/2021, 7:12 PMchipilov
12/21/2021, 7:51 PMMike_
12/21/2021, 11:08 PMDeleted User
12/22/2021, 7:06 PMDeleted User
12/22/2021, 7:19 PMsilentworks
12/24/2021, 11:30 AMthyme
12/25/2021, 6:17 PMGary, el Pingüino Artefacto
12/25/2021, 6:29 PMKilian
12/27/2021, 3:32 PMsilentworks
12/28/2021, 1:03 PMsilentworks
12/28/2021, 1:03 PMMike_
12/28/2021, 4:48 PMjs
// In my case, I need to add additional users as 'owners' of a record using their email address
// Find user by email
const { data, error } = await supabase
.from('auth.users') // Not possible now
.select()
.eq('email', 'user@gmail.com')
// Then use the user's data for some business logic
Some developers have used workarounds like creating a public.users table which replicates relevant data from the auth.users table using triggers. This feels like a hacky workaround to me... I would much rather avoid this unnecessary redundancy / potential for data inconsistency down the line. (See: https://nikofischer.com/supabase-how-to-query-users-table)
Edit: I've copied this feature request to the git repo: https://github.com/supabase/supabase/issues/4715leviwhalen
12/28/2021, 11:54 PMHarryET
12/29/2021, 12:06 AMsilentworks
12/29/2021, 2:04 AMktosiek
12/29/2021, 1:22 PM.setAuth()
doesn't do - I see people trying to use it like it's an API for signing in with access_token, when it seems to be a very low level tool.HarryET
12/29/2021, 1:50 PMOlyno
01/02/2022, 6:31 PMHal
01/05/2022, 4:29 PMandyouareagone
01/05/2022, 7:45 PM