mirror of
https://github.com/supabase/supabase.git
synced 2026-10-05 17:35:10 +03:00
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 <chris.ward@supabase.io>
This commit is contained in:
1 file changed
+4
-1
@@ -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": "" }} />
|
||||
|
||||
|
||||
Reference in new issue
Block a user