Update auth-policies.mdx

This commit is contained in:
DreamInk-Offical authored and GitHub committed 2023-02-11 03:05:21 +01:00
1 parent dbe5c239b9
commit 5417c98aa4
1 file changed
+1 -1
@@ -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;
```