Skip to content

Commit 6c7347e

Browse files
udpate config validation logic
1 parent 3c864e0 commit 6c7347e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/errors/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ export class ConfigurationError extends SdkError {
185185
// Add specific details for each missing option
186186
missingOptions.forEach((key) => {
187187
if (key === "clientAuthentication") {
188-
errorMessage += `Missing: either 'clientSecret' (AUTH0_CLIENT_SECRET env var) or 'clientAssertionSigningKey' (AUTH0_CLIENT_ASSERTION_SIGNING_KEY env var)\n`;
188+
errorMessage += `Missing: clientAuthentication: Set either AUTH0_CLIENT_SECRET env var or AUTH0_CLIENT_ASSERTION_SIGNING_KEY env var, or pass clientSecret or clientAssertionSigningKey in options\n`;
189189
} else if (envVarMapping[key]) {
190190
errorMessage += `Missing: ${key}: Set ${envVarMapping[key]} env var or pass ${key} in options\n`;
191191
} else {

0 commit comments

Comments
 (0)