The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
fix: update terminology around anonymous vs public/unauthenticated (#21814)
Charis922a8f941d5b
diff --git a/apps/docs/content/guides/api/api-keys.mdx b/apps/docs/content/guides/api/api-keys.mdxindex b310766f98a..e0faa402039 100644--- a/apps/docs/content/guides/api/api-keys.mdx+++ b/apps/docs/content/guides/api/api-keys.mdx@@ -20,10 +20,10 @@ The keys are both long-lived JWTs. If you decode these keys, you will see that t## The `anon` key-The `anon` key has very few privileges. You can use it in your [RLS policies](/docs/guides/auth/row-level-security) for "anonymous" access. For example, this policy will allow access to the `profiles` table:+The `anon` key has very few privileges. You can use it in your [RLS policies](/docs/guides/auth/row-level-security) to allow unauthenticated access. For example, this policy will allow unauthenticated access to the `profiles` table:```sql-create policy "Allow anonymous access" on profiles to anon for+create policy "Allow public access" on profiles to anon forselectusing (true);```@@ -31,7 +31,7 @@ selectAnd similarity for disallowing access:```sql-create policy "Disallow anonymous access" on profiles to anon for+create policy "Disallow public access" on profiles to anon forselectusing (false);```diff --git a/apps/docs/content/guides/api/quickstart.mdx b/apps/docs/content/guides/api/quickstart.mdxindex 1ab1f6640e0..fbd141e9309 100644--- a/apps/docs/content/guides/api/quickstart.mdx+++ b/apps/docs/content/guides/api/quickstart.mdx@@ -59,9 +59,9 @@ We'll create a database table called `todos` for storing tasks. This creates a c<StepHikeCompact.Step step={2}>- <StepHikeCompact.Details title="Allow anonymous access">+ <StepHikeCompact.Details title="Allow public access">- Let's turn on Row Level Security for this table and allow anonymous access.+ Let's turn on Row Level Security for this table and allow public access.</StepHikeCompact.Details>@@ -73,7 +73,7 @@ We'll create a database table called `todos` for storing tasks. This creates a cenable row level security;-- Allow anonymous access- create policy "Allow anonymous access"+ create policy "Allow public access"on todosfor selectto anondiff --git a/apps/docs/content/guides/auth/row-level-security.mdx b/apps/docs/content/guides/auth/row-level-security.mdxindex f7fb52a63df..1ca5491e198 100644--- a/apps/docs/content/guides/auth/row-level-security.mdx+++ b/apps/docs/content/guides/auth/row-level-security.mdx@@ -40,11 +40,11 @@ where auth.uid() = todos.user_id;-- Policy is implicitly added.```-## Authenticated and anonymous roles+## Authenticated and unauthenticated rolesSupabase Auth maps every request to one of the roles:-- `anon`: an anonymous request (the user is not logged in)+- `anon`: an unauthenticated request (the user is not logged in)- `authenticated`: an authenticated request (the user is logged in)These are actually [Postgres Roles](/docs/guides/database/postgres/roles), and so they have significant value for the [performance](/docs/guides/database/postgres/row-level-security#specify-roles-in-your-policies) of your RLS Policies. You can use these roles within your Policies using the `TO` clause:diff --git a/apps/docs/content/guides/database/postgres/roles.mdx b/apps/docs/content/guides/database/postgres/roles.mdxindex a0b7b95066f..41d8d6f7577 100644--- a/apps/docs/content/guides/database/postgres/roles.mdx+++ b/apps/docs/content/guides/database/postgres/roles.mdx@@ -86,7 +86,7 @@ The default Postgres role. This has admin privileges.### `anon`-For "anonymous access." This is the role which the API (PostgREST) will use when a user _is not_ logged in.+For unauthenticated, public access. This is the role which the API (PostgREST) will use when a user _is not_ logged in.### `authenticator`