Skip to content

Commit 98e726f

Browse files
TylerBarneswardpeet
andauthoredJul 9, 2021
fix(gatsby-source-wordpress): Backporting auth leak fix (#32315)
* fix(gatsby-source-wordpress): don't leak auth details * v2 didn't have these integration tests set up Co-authored-by: Ward Peeters <ward@coding-tech.com>

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed
 

‎packages/gatsby-source-wordpress/src/steps/process-and-validate-plugin-options.ts

+3
Original file line numberDiff line numberDiff line change
@@ -86,5 +86,8 @@ export const processAndValidatePluginOptions = (
8686
}
8787
})
8888

89+
// remove auth from pluginOptions so we don't leak into the browser
90+
delete pluginOptions.auth
91+
8992
return userPluginOptions
9093
}

0 commit comments

Comments
 (0)
Please sign in to comment.