Supabase Sign Up metadata is empty

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?

Could you report it to support.weweb.io ? We’ll fix the issue asap!

I have it here for almost a week already :frowning:

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

Hi @nekitonn,

This works with a single value. How did you enter more values?

thanks

I guess you can pass an array with multiple objects:
[
{key: ‘referral’, value: referral_id},
{key: ‘referral’, value: referral_id}
]

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