mirror of
https://github.com/supabase/supabase.git
synced 2026-10-13 21:29:08 +03:00
Update auth-policies.mdx
This commit is contained in:
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;
|
||||
```
|
||||
|
||||
Reference in new issue
Block a user