From b0cfb05bd11b5305cf2eecfd9a880e7eea572b58 Mon Sep 17 00:00:00 2001 From: Ranjith kumar Date: Mon, 13 Jan 2025 18:43:53 +0530 Subject: [PATCH] docs: remove redundant body parameter in fetch customer (#10934) --- .../customers/third-party-login/page.mdx | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/www/apps/resources/app/storefront-development/customers/third-party-login/page.mdx b/www/apps/resources/app/storefront-development/customers/third-party-login/page.mdx index fe6bbc9cff..e2703a2d90 100644 --- a/www/apps/resources/app/storefront-development/customers/third-party-login/page.mdx +++ b/www/apps/resources/app/storefront-development/customers/third-party-login/page.mdx @@ -376,10 +376,6 @@ const validateCallback = async () => { "Authorization": `Bearer ${token}`, "x-publishable-api-key": process.env.NEXT_PUBLIC_MEDUSA_PUBLISHABLE_KEY || "temp", }, - body: JSON.stringify({ - // TODO show form to retrieve email from customer - email: "example@medusajs.com", - }), } ).then((res) => res.json()) } @@ -419,10 +415,6 @@ const validateCallback = async () => { "Authorization": `Bearer ${token}`, "x-publishable-api-key": process.env.NEXT_PUBLIC_MEDUSA_PUBLISHABLE_KEY || "temp", }, - body: JSON.stringify({ - // TODO show form to retrieve email from customer - email: "example@medusajs.com", - }), } ).then((res) => res.json()) @@ -537,10 +529,6 @@ const validateCallback = async () => { "Authorization": `Bearer ${token}`, "x-publishable-api-key": process.env.NEXT_PUBLIC_MEDUSA_PUBLISHABLE_KEY || "temp", }, - body: JSON.stringify({ - // TODO show form to retrieve email from customer - email: "example@medusajs.com", - }), } ).then((res) => res.json()) } @@ -635,10 +623,6 @@ export default function GoogleCallback() { "Authorization": `Bearer ${token}`, "x-publishable-api-key": process.env.NEXT_PUBLIC_MEDUSA_PUBLISHABLE_KEY || "temp", }, - body: JSON.stringify({ - // TODO show form to retrieve email from customer - email: "example@medusajs.com", - }), } ).then((res) => res.json())