From ec6e5ee05f8659f105ee261d99626c9e37eebb91 Mon Sep 17 00:00:00 2001 From: Justin Date: Mon, 12 Jan 2026 23:15:39 -0800 Subject: [PATCH] docs: Update auth.mdx to include important note about local testing (#32946) * Update auth.mdx to include important note about local testing * Apply suggestions from code review --------- Co-authored-by: Charis <26616127+charislam@users.noreply.github.com> Co-authored-by: Chris Chinchilla --- apps/docs/content/guides/functions/auth.mdx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/docs/content/guides/functions/auth.mdx b/apps/docs/content/guides/functions/auth.mdx index 47f7be07c0f..13895c1946b 100644 --- a/apps/docs/content/guides/functions/auth.mdx +++ b/apps/docs/content/guides/functions/auth.mdx @@ -32,7 +32,10 @@ Following the [upcoming API key changes](https://github.com/orgs/supabase/discus ## Integrating with Supabase Auth -The simplest way to secure your endpoints is by using Supabase Auth to verify users. +Important notes to consider: + +- This is done _inside_ the `Deno.serve()` callback argument, so that the Authorization header is set for each request. +- Use `Deno.env.get('SUPABASE_URL')` to get the URL associated with your project. Using a value such as `http://localhost:54321` for local development will fail due to Docker containerization. <$Partial path="api_settings.mdx" variables={{ "framework": "", "tab": "" }} />