Skip to content

Commit fbc7ec0

Browse files
docs: remove redundant body parameter in fetch customer
1 parent ecf7378 commit fbc7ec0

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
@@ -381,10 +381,6 @@ const validateCallback = async () => {
381381
"Authorization": `Bearer ${token}`,
382382
"x-publishable-api-key": process.env.NEXT_PUBLIC_MEDUSA_PUBLISHABLE_KEY || "temp",
383383
},
384-
body: JSON.stringify({
385-
// TODO show form to retrieve email from customer
386-
387-
}),
388384
}
389385
).then((res) => res.json())
390386
}
@@ -424,10 +420,6 @@ const validateCallback = async () => {
424420
"Authorization": `Bearer ${token}`,
425421
"x-publishable-api-key": process.env.NEXT_PUBLIC_MEDUSA_PUBLISHABLE_KEY || "temp",
426422
},
427-
body: JSON.stringify({
428-
// TODO show form to retrieve email from customer
429-
430-
}),
431423
}
432424
).then((res) => res.json())
433425

@@ -542,10 +534,6 @@ const validateCallback = async () => {
542534
"Authorization": `Bearer ${token}`,
543535
"x-publishable-api-key": process.env.NEXT_PUBLIC_MEDUSA_PUBLISHABLE_KEY || "temp",
544536
},
545-
body: JSON.stringify({
546-
// TODO show form to retrieve email from customer
547-
548-
}),
549537
}
550538
).then((res) => res.json())
551539
}
@@ -640,10 +628,6 @@ export default function GoogleCallback() {
640628
"Authorization": `Bearer ${token}`,
641629
"x-publishable-api-key": process.env.NEXT_PUBLIC_MEDUSA_PUBLISHABLE_KEY || "temp",
642630
},
643-
body: JSON.stringify({
644-
// TODO show form to retrieve email from customer
645-
646-
}),
647631
}
648632
).then((res) => res.json())
649633

0 commit comments

Comments
 (0)