StickSeas
04/04/2022, 8:31 PMconst { data: user, error } = await supabase.auth.api.createUser({
email: username,
password: password,
data: {
first_name: first,
last_name: last,
address: address
}
});
This always ends up having the user_metadata as a blank object.
console.log(user);
{
id: 'deg84a9f-334e-8v6s-81bd-87dd864e0t187',
aud: 'authenticated',
role: 'authenticated',
email: 'email@email.com',
phone: '',
app_metadata: { provider: 'email', providers: [ 'email' ] },
user_metadata: {},
identities: null,
created_at: '2022-04-04T19:14:21.704112Z',
updated_at: '2022-04-04T19:14:21.705655Z'
}
Needle
04/04/2022, 8:31 PM/title
command!
We have solved your problem?
Click the button below to archive it.garyaustin
04/05/2022, 12:30 AMconst { data: user, error } = await supabase.auth.api.createUser({
email: 'user@email.com',
password: 'password',
user_metadata: {
name: 'Yoda'
}
}
note the use of user_metadata versus documented data.... SighStickSeas
04/06/2022, 5:47 PMgaryaustin
04/06/2022, 7:13 PM