Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

docs: clarify user_metadata (#38252)

Stojan Dimitrovski60b3ec2f9aab
diff --git a/apps/docs/content/guides/auth/users.mdx b/apps/docs/content/guides/auth/users.mdx
index 2b537566047..52306d68b72 100644
--- a/apps/docs/content/guides/auth/users.mdx
+++ b/apps/docs/content/guides/auth/users.mdx
@@ -56,23 +56,23 @@ A user with an email or phone identity will be able to sign in with either a pas
The user object contains the following attributes:
-| Attributes | Type | Description |
-| ------------------ | ---------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
-| id | `string` | The unique id of the identity of the user. |
-| aud | `string` | The audience claim. |
-| role | `string` | The role claim used by Postgres to perform Row Level Security (RLS) checks. |
-| email | `string` | The user's email address. |
-| email_confirmed_at | `string` | The timestamp that the user's email was confirmed. If null, it means that the user's email is not confirmed. |
-| phone | `string` | The user's phone number. |
-| phone_confirmed_at | `string` | The timestamp that the user's phone was confirmed. If null, it means that the user's phone is not confirmed. |
-| confirmed_at | `string` | The timestamp that either the user's email or phone was confirmed. If null, it means that the user does not have a confirmed email address and phone number. |
-| last_sign_in_at | `string` | The timestamp that the user last signed in. |
-| app_metadata | `object` | The `provider` attribute indicates the first provider that the user used to sign up with. The `providers` attribute indicates the list of providers that the user can use to login with. |
-| user_metadata | `object` | Defaults to the first provider's identity data but can contain additional custom user metadata if specified. Refer to [**User Identity**](/docs/guides/auth/auth-identity-linking#the-user-identity) for more information about the identity object. |
-| identities | `UserIdentity[]` | Contains an object array of identities linked to the user. |
-| created_at | `string` | The timestamp that the user was created. |
-| updated_at | `string` | The timestamp that the user was last updated. |
-| is_anonymous | `boolean` | Is true if the user is an anonymous user. |
+| Attributes | Type | Description |
+| ------------------ | ---------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
+| id | `string` | The unique id of the identity of the user. |
+| aud | `string` | The audience claim. |
+| role | `string` | The role claim used by Postgres to perform Row Level Security (RLS) checks. |
+| email | `string` | The user's email address. |
+| email_confirmed_at | `string` | The timestamp that the user's email was confirmed. If null, it means that the user's email is not confirmed. |
+| phone | `string` | The user's phone number. |
+| phone_confirmed_at | `string` | The timestamp that the user's phone was confirmed. If null, it means that the user's phone is not confirmed. |
+| confirmed_at | `string` | The timestamp that either the user's email or phone was confirmed. If null, it means that the user does not have a confirmed email address and phone number. |
+| last_sign_in_at | `string` | The timestamp that the user last signed in. |
+| app_metadata | `object` | The `provider` attribute indicates the first provider that the user used to sign up with. The `providers` attribute indicates the list of providers that the user can use to login with. |
+| user_metadata | `object` | Defaults to the first provider's identity data but can contain additional custom user metadata if specified. Refer to [**User Identity**](/docs/guides/auth/auth-identity-linking#the-user-identity) for more information about the identity object. Don't rely on the order of information in this field. Do not use it in security sensitive context (such as in RLS policies or authorization logic), as this value is editable by the user without any checks. |
+| identities | `UserIdentity[]` | Contains an object array of identities linked to the user. |
+| created_at | `string` | The timestamp that the user was created. |
+| updated_at | `string` | The timestamp that the user was last updated. |
+| is_anonymous | `boolean` | Is true if the user is an anonymous user. |
## Resources