Closed awalias closed 1 month ago
I finally found some solution...
I went into the server level logs, and saw that my user creation was failing due to type conversion. So, I modified my create function which is called when sending data in order to make the conversions more explicit.
(new.raw_user_meta_data->>'is_active')::boolean,
(new.raw_user_meta_data->>'is_deleted')::boolean
Postgres kept my boolean in text form (I don't know why).
And in my code, I send 0
or 1
instead of true
or false
.
data: {
'username': username,
'email': email,
'firstname': firstname,
'lastname': lastname,
'phone_number': phone,
'phone_number_code': phoneCode,
'updated_at': DateTime.timestamp().toIso8601String(),
'created_at': DateTime.timestamp().toIso8601String(),
'token': null,
'is_active': 0,
'is_deleted': 0,
}
Hi @BaHithBENON.
It looks like you have managed to solve your case, so I'm going to close this issue.
@awalias @dshukertjr Thanks !!!
Discussed in https://github.com/orgs/supabase/discussions/23326