fix: remove actual values from the validate callback errors

This commit is contained in:
Convly 2024-04-11 14:39:28 +02:00
parent b2690ca50e
commit 4de25b889b

View File

@ -26,14 +26,14 @@ module.exports = {
// Make sure the different origin matches // Make sure the different origin matches
if(uCallback.origin !== uProviderCallback.origin) { if(uCallback.origin !== uProviderCallback.origin) {
throw new Error( 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 // Make sure the different pathname matches
if(uCallback.pathname !== uProviderCallback.pathname) { if(uCallback.pathname !== uProviderCallback.pathname) {
throw new Error( 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.`
); );
} }