From 9c8830b7783dae1e97c51a45d51ec5bb6cd9617c Mon Sep 17 00:00:00 2001 From: Joel Lee Date: Fri, 11 Oct 2024 20:54:30 +0200 Subject: [PATCH] fix: update curl snippet for invite user (#29851) fix: update snippet --- apps/studio/components/interfaces/Docs/Snippets.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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": "someone@email.com"