docs: remove redundant body parameter in fetch customer (#10934)

This commit is contained in:
Ranjith kumar
2025-01-13 18:43:53 +05:30
committed by GitHub
parent 4250c292eb
commit b0cfb05bd1

View File

@@ -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())