Skip to content

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

docs(snippets): fix bash example for user invite (#22274)

F-G Fernandez7bac09dc4656
diff --git a/apps/studio/components/interfaces/Docs/Snippets.ts b/apps/studio/components/interfaces/Docs/Snippets.ts
index 465fb71b996..93f23714aa3 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 ${apiKey}" \\
+-H "Authorization: Bearer USER_TOKEN" \\
-H "Content-Type: application/json" \\
-d '{
"email": "[email protected]"
@@ -710,7 +710,7 @@ let { data, error } = await supabase.auth.resetPasswordForEmail(email)
code: `
curl -X PUT '${endpoint}/auth/v1/user' \\
-H "apikey: ${apiKey}" \\
--H "Authorization: Bearer <USERS-ACCESS-TOKEN>" \\
+-H "Authorization: Bearer USER_TOKEN" \\
-H "Content-Type: application/json" \\
-d '{
"email": "[email protected]",