Skip to content

Commit 3c2e216

Browse files
ranjithkumar8352jimrarras
authored andcommitted
docs: remove redundant body parameter in fetch customer (medusajs#10934)
1 parent 9f1bafb commit 3c2e216

File tree

1 file changed

+0
-16
lines changed
  • www/apps/resources/app/storefront-development/customers/third-party-login

1 file changed

+0
-16
lines changed

www/apps/resources/app/storefront-development/customers/third-party-login/page.mdx

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -376,10 +376,6 @@ const validateCallback = async () => {
376376
"Authorization": `Bearer ${token}`,
377377
"x-publishable-api-key": process.env.NEXT_PUBLIC_MEDUSA_PUBLISHABLE_KEY || "temp",
378378
},
379-
body: JSON.stringify({
380-
// TODO show form to retrieve email from customer
381-
382-
}),
383379
}
384380
).then((res) => res.json())
385381
}
@@ -419,10 +415,6 @@ const validateCallback = async () => {
419415
"Authorization": `Bearer ${token}`,
420416
"x-publishable-api-key": process.env.NEXT_PUBLIC_MEDUSA_PUBLISHABLE_KEY || "temp",
421417
},
422-
body: JSON.stringify({
423-
// TODO show form to retrieve email from customer
424-
425-
}),
426418
}
427419
).then((res) => res.json())
428420

@@ -537,10 +529,6 @@ const validateCallback = async () => {
537529
"Authorization": `Bearer ${token}`,
538530
"x-publishable-api-key": process.env.NEXT_PUBLIC_MEDUSA_PUBLISHABLE_KEY || "temp",
539531
},
540-
body: JSON.stringify({
541-
// TODO show form to retrieve email from customer
542-
543-
}),
544532
}
545533
).then((res) => res.json())
546534
}
@@ -635,10 +623,6 @@ export default function GoogleCallback() {
635623
"Authorization": `Bearer ${token}`,
636624
"x-publishable-api-key": process.env.NEXT_PUBLIC_MEDUSA_PUBLISHABLE_KEY || "temp",
637625
},
638-
body: JSON.stringify({
639-
// TODO show form to retrieve email from customer
640-
641-
}),
642626
}
643627
).then((res) => res.json())
644628

0 commit comments

Comments
 (0)