--- id: auth-update title: "auth.update()" slug: auth-update --- import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; Updates user data, if there is a logged in user. ```js const { user, error } = await supabase.auth.update({ data: { hello: 'world' } }) ``` ```py # Not yet implemented ``` ## Parameters ## Notes It's generally better to store user data in a table inside your public schema (i.e. `public.users`). Use the `update()` method if you have data which rarely changes or is specific only to the logged in user. ## Examples ### Update a user's metadata. ```js const { user, error } = await supabase.auth.update({ data: { hello: 'world' } }) ``` ```py # Not yet implemented ```