Skip to content

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

Update auth-policies.mdx

DreamInk-Offical5417c98aa45d
diff --git a/apps/docs/pages/learn/auth-deep-dive/auth-policies.mdx b/apps/docs/pages/learn/auth-deep-dive/auth-policies.mdx
index b79c6e038b7..17e81a174b2 100644
--- a/apps/docs/pages/learn/auth-deep-dive/auth-policies.mdx
+++ b/apps/docs/pages/learn/auth-deep-dive/auth-policies.mdx
@@ -157,7 +157,7 @@ Supabase comes with two built-in helper functions: `auth.uid()` and `auth.jwt()`
To create your own functions, navigate to the SQL editor and create a a new query.
```
-create or replace function auth.useragent() returns text as $$
+create or replace function useragent() returns text as $$
select nullif(current_setting('request.headers', true)::json->>'user-agent', '')::text;
$$ language sql;
```