Skip to content

Commit

Permalink
fix(gatsby-source-wordpress): Backporting auth leak fix (#32315)
Browse files Browse the repository at this point in the history
* fix(gatsby-source-wordpress): don't leak auth details

* v2 didn't have these integration tests set up

Co-authored-by: Ward Peeters <[email protected]>
  • Loading branch information
TylerBarnes and wardpeet authored Jul 9, 2021
1 parent 5a654fa commit 98e726f
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,5 +86,8 @@ export const processAndValidatePluginOptions = (
}
})

// remove auth from pluginOptions so we don't leak into the browser
delete pluginOptions.auth

return userPluginOptions
}

0 comments on commit 98e726f

Please sign in to comment.