Skip to content

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

fix: update curl snippet for invite user (#29851)

Joel Leebf5777abccc8
diff --git a/apps/studio/components/interfaces/Docs/Snippets.ts b/apps/studio/components/interfaces/Docs/Snippets.ts
index de2792c4692..d72a54af4ec 100644
--- a/apps/studio/components/interfaces/Docs/Snippets.ts
+++ b/apps/studio/components/interfaces/Docs/Snippets.ts
@@ -637,7 +637,7 @@ let { data, error } = await supabase.auth.verifyOtp({
code: `
curl -X POST '${endpoint}/auth/v1/invite' \\
-H "apikey: ${apiKey}" \\
--H "Authorization: Bearer USER_TOKEN" \\
+-H "Authorization: Bearer SERVICE_ROLE_KEY" \\
-H "Content-Type: application/json" \\
-d '{
"email": "[email protected]"