I’m trying to add a custom metadata on users Sign up action.
But when I test the Sign Up, data is empty in the request payload as well as in auth.users table (raw_user_meta_data column)
{
“email”: “xxx@gmail.com ”,
“password”: “1qwerty7”,
“data”: {},
“gotrue_meta_security”: {}
}
What can be the problem?
@Quentin
Hi! Can you help with this?
Quentin
(Quentin Durantay)
May 15, 2023, 9:23am
3
Could you report it to support.weweb.io ? We’ll fix the issue asap!
I have it here for almost a week already
That you for helping with solution.
Solution:
If you bind it you have to return an array with an object containing {key: ‘referral’, value: referral_id}
1 Like
Ewerton
(Ewerton Luiz Oliveira)
June 20, 2023, 10:29pm
6
Hi @nekitonn ,
This works with a single value. How did you enter more values?
thanks
nekitonn
(Nick)
June 20, 2023, 11:18pm
7
I guess you can pass an array with multiple objects:
[
{key: ‘referral’, value: referral_id},
{key: ‘referral’, value: referral_id}
]
Ewerton
(Ewerton Luiz Oliveira)
June 20, 2023, 11:53pm
8
I tried like this. It pops up both objects at formula time, but only saves one of them.
I will keep trying. Thanks for the answer