Auth create user metadata

Hi! I want to use the sign up form in my website to capture the user's name. I have seen in the docs that I can send additional properties via the data option:
const { data, error } = await supabase.auth.signUp(
{
email: 'example@email.com',
password: 'example-password',
options: {
data: {
first_name: 'John',
age: 27,
}
}
}
)
const { data, error } = await supabase.auth.signUp(
{
email: 'example@email.com',
password: 'example-password',
options: {
data: {
first_name: 'John',
age: 27,
}
}
}
)
I have tried that, but I don't know what happens with those properties. Are they stored somewhere? Can I retrieve them later? I expected those properties to become columns in the Auth user list, but it doesn't seem to work that way.
2 Replies
garyaustin
garyaustin2h ago
They will be added as json to the raw_user_meta_data column. They will also be in user metadata claim of the JWT
Daniel H. Alcojor
Thanks!

Did you find this page helpful?