Skip to content

Commit

Permalink
test(core): Stop showing JWT warning during test runs (no-changelog) (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
ivov authored Jul 31, 2024
1 parent 519fc4d commit efee25d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/cli/src/config/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,10 @@ config.validate({
});
const userManagement = config.get('userManagement');
if (userManagement.jwtRefreshTimeoutHours >= userManagement.jwtSessionDurationHours) {
console.warn(
'N8N_USER_MANAGEMENT_JWT_REFRESH_TIMEOUT_HOURS needs to smaller than N8N_USER_MANAGEMENT_JWT_DURATION_HOURS. Setting N8N_USER_MANAGEMENT_JWT_REFRESH_TIMEOUT_HOURS to 0 for now.',
);
if (!inTest)
console.warn(
'N8N_USER_MANAGEMENT_JWT_REFRESH_TIMEOUT_HOURS needs to smaller than N8N_USER_MANAGEMENT_JWT_DURATION_HOURS. Setting N8N_USER_MANAGEMENT_JWT_REFRESH_TIMEOUT_HOURS to 0 for now.',
);

config.set('userManagement.jwtRefreshTimeoutHours', 0);
}
Expand Down

0 comments on commit efee25d

Please sign in to comment.