docs: remove redundant body parameter in fetch customer (#10934)
This commit is contained in:
@@ -376,10 +376,6 @@ const validateCallback = async () => {
|
|||||||
"Authorization": `Bearer ${token}`,
|
"Authorization": `Bearer ${token}`,
|
||||||
"x-publishable-api-key": process.env.NEXT_PUBLIC_MEDUSA_PUBLISHABLE_KEY || "temp",
|
"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())
|
).then((res) => res.json())
|
||||||
}
|
}
|
||||||
@@ -419,10 +415,6 @@ const validateCallback = async () => {
|
|||||||
"Authorization": `Bearer ${token}`,
|
"Authorization": `Bearer ${token}`,
|
||||||
"x-publishable-api-key": process.env.NEXT_PUBLIC_MEDUSA_PUBLISHABLE_KEY || "temp",
|
"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())
|
).then((res) => res.json())
|
||||||
|
|
||||||
@@ -537,10 +529,6 @@ const validateCallback = async () => {
|
|||||||
"Authorization": `Bearer ${token}`,
|
"Authorization": `Bearer ${token}`,
|
||||||
"x-publishable-api-key": process.env.NEXT_PUBLIC_MEDUSA_PUBLISHABLE_KEY || "temp",
|
"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())
|
).then((res) => res.json())
|
||||||
}
|
}
|
||||||
@@ -635,10 +623,6 @@ export default function GoogleCallback() {
|
|||||||
"Authorization": `Bearer ${token}`,
|
"Authorization": `Bearer ${token}`,
|
||||||
"x-publishable-api-key": process.env.NEXT_PUBLIC_MEDUSA_PUBLISHABLE_KEY || "temp",
|
"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())
|
).then((res) => res.json())
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user