Skip to content

Commit

Permalink
fix: remove actual values from the validate callback errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Convly committed Apr 11, 2024
1 parent b2690ca commit 4de25b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/plugins/users-permissions/server/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@ module.exports = {
// Make sure the different origin matches
if(uCallback.origin !== uProviderCallback.origin) {
throw new Error(
`Forbidden callback provided: origins don't match ${uCallback.origin} !== ${uProviderCallback.origin})`
`Forbidden callback provided: origins don't match. Please verify your config.`
);
}

// Make sure the different pathname matches
if(uCallback.pathname !== uProviderCallback.pathname) {
throw new Error(
`Forbidden callback provided: pathname don't match ${uCallback.pathname} !== ${uProviderCallback.pathname})`
`Forbidden callback provided: pathname don't match. Please verify your config.`
);
}

Expand Down

0 comments on commit 4de25b8

Please sign in to comment.