feat: Attach the Authorization header if a wpAuthToken is present in the context

This commit is contained in:
2026-03-26 15:32:13 -04:00
parent c9a9e03b60
commit 30c7b8b0b5
6 changed files with 124 additions and 26 deletions

View File

@@ -1,3 +1,4 @@
export default defineGraphQLContext(async (event) => {
return {};
const wpAuthToken = await getAuthToken(event);
return { wpAuthToken };
});