moein
01/08/2022, 8:09 AMgleki
01/08/2022, 10:20 AMnixfixbix
01/08/2022, 2:52 PMpublic.profiles
?
The issue doing it in two calls is if the second request fails - that's kind of a broken state. I'd prefer to have some plsql triggers but I don't see how the trigger could have access to the additional data since it's not available on auth.users
. I hope it makes sense?moein
01/08/2022, 3:23 PMmoein
01/08/2022, 3:26 PMnixfixbix
01/08/2022, 3:27 PMmoein
01/08/2022, 3:35 PMnixfixbix
01/08/2022, 3:36 PMmoein
01/08/2022, 3:38 PMHarryET
01/08/2022, 4:58 PMnixfixbix
01/08/2022, 5:28 PMnixfixbix
01/08/2022, 9:32 PM/invite
on the gotrue service - source code here: https://github.com/supabase/gotrue/blob/master/api/invite.go. I don't think there is a way to do that in a transaction with creating user profile data as wellnixfixbix
01/08/2022, 9:39 PMraw_user_meta_data
when inviting a user?nixfixbix
01/08/2022, 10:16 PMserverSupabase.auth.api.inviteUserByEmail("john@doe.com", {data: {....})
<- {...}
will be added to auth.users.raw_user_meta_data
(and can then be used in triggers).logemann
01/09/2022, 10:37 AMlogemann
01/09/2022, 1:23 PMgleki
01/09/2022, 3:23 PMGaurav
01/09/2022, 3:37 PMhero76
01/09/2022, 5:04 PMsockenguy
01/09/2022, 5:28 PMhero76
01/09/2022, 5:50 PMuser
01/09/2022, 6:09 PMsockenguy
01/09/2022, 7:29 PMhero76
01/09/2022, 7:30 PMhero76
01/09/2022, 7:30 PMsockenguy
01/09/2022, 7:59 PMGaurav
01/09/2022, 9:20 PMGrymer
01/09/2022, 10:44 PMGrymer
01/09/2022, 10:45 PM