Skip to content

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

fix spelling

Copple274e36e44f7b
diff --git a/apps/docs/pages/guides/auth/row-level-security.mdx b/apps/docs/pages/guides/auth/row-level-security.mdx
index 14ca6564dcc..ddc4711c67b 100644
--- a/apps/docs/pages/guides/auth/row-level-security.mdx
+++ b/apps/docs/pages/guides/auth/row-level-security.mdx
@@ -74,9 +74,9 @@ Returns the ID of the user making the request.
### `auth.jwt()`
-Returns the JWT of the user making the request. Anything that you store in the user's `app_metadata` column or the `user_metadata` column will be accessible using this function. Be careful not to store too much data in both of these fields, becuase some browsers have a limitation of 4096 bytes for cookies.
+Returns the JWT of the user making the request. Anything that you store in the user's `app_metadata` column or the `user_metadata` column will be accessible using this function. Be careful not to store too much data in both of these fields, because some browsers have a limitation of 4096 bytes for cookies.
-It's important to know the distinciton between these two:
+It's important to know the distinction between these two:
- `user_metadata` - can be updated by the authenticated user using the `supabase.auth.update()` function. It is not a good place to store authorization data.
- `app_metadata` - cannot be updated by the user, so it's a good place to store authorization data.
@@ -210,7 +210,7 @@ create policy "Team members can update team details if they belong to the team"
);
```
-An important note here: if RLS is also enabled for `members`, the user must also have read (`select`) access to members. Otherwise the joined query will not yield any results. Another alternative is to use a "security definer" function which is created by a user with [bypassrls](/docs/guides/database/postgres/row-level-security#specify-roles-in-your-policies) priveleges.
+An important note here: if RLS is also enabled for `members`, the user must also have read (`select`) access to members. Otherwise the joined query will not yield any results. Another alternative is to use a "security definer" function which is created by a user with [bypassrls](/docs/guides/database/postgres/row-level-security#specify-roles-in-your-policies) privileges.
### Using security definer functions
diff --git a/apps/docs/pages/guides/database/postgres/row-level-security.mdx b/apps/docs/pages/guides/database/postgres/row-level-security.mdx
index 5773ddf51f7..c80796b0c0e 100644
--- a/apps/docs/pages/guides/database/postgres/row-level-security.mdx
+++ b/apps/docs/pages/guides/database/postgres/row-level-security.mdx
@@ -13,7 +13,7 @@ When you need granular authorization rules, nothing beats Postgres's [Row Level
RLS is incredibly powerful and flexible, allowing you to write complex SQL rules that fit your unique business needs. RLS can be [combined with Supabase Auth](/docs/guides/auth/row-level-security) for end-to-end user security from the browser to the database.
-Alternatively, RLS can provide "[defence in depth](<https://en.wikipedia.org/wiki/Defense_in_depth_(computing)>)" to protect your data from malicious actors if you're using your own tooling with the Postgres database we provide.
+Alternatively, RLS can provide "[defense in depth](<https://en.wikipedia.org/wiki/Defense_in_depth_(computing)>)" to protect your data from malicious actors if you're using your own tooling with the Postgres database we provide.
## Policies
@@ -158,13 +158,13 @@ using ( auth.id() = user_id ); -- the actual Policy
## Bypassing Row Level Security
-You can create [Postgres Roles](/docs/guides/database/postgres/roles) which can bypass Row Level Security using the "bypass RLS" privelege:
+You can create [Postgres Roles](/docs/guides/database/postgres/roles) which can bypass Row Level Security using the "bypass RLS" privilege:
```sql
grant bypassrls on "table_name" to "role_name";
```
-This can be useful for system-level access. You should _never_ share login credentials for any Postgres Role with this privelege.
+This can be useful for system-level access. You should _never_ share login credentials for any Postgres Role with this privilege.
## RLS Performance Recommendations
@@ -262,7 +262,7 @@ Even though this duplicates the contents of the Policy, Postgres can use the to
### Use security definer functions
-A "security definer" function runs using the same role that _created_ the function. This means that if you create a role with a superuser (like `postgres`), then that function will have `bypassrls` priveleges. For example, if you had a policy like this:
+A "security definer" function runs using the same role that _created_ the function. This means that if you create a role with a superuser (like `postgres`), then that function will have `bypassrls` privileges. For example, if you had a policy like this:
```sql
create policy "rls_test_select" on test_table