feat: Attach the Authorization header if a wpAuthToken is present in the context
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
export default defineGraphQLContext(async (event) => {
|
||||
return {};
|
||||
const wpAuthToken = await getAuthToken(event);
|
||||
return { wpAuthToken };
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user