mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-11 12:57:29 -08:00
test(core): Stop showing JWT warning during test runs (no-changelog) (#10255)
This commit is contained in:
parent
519fc4d753
commit
efee25ddaa
|
@ -96,9 +96,10 @@ config.validate({
|
||||||
});
|
});
|
||||||
const userManagement = config.get('userManagement');
|
const userManagement = config.get('userManagement');
|
||||||
if (userManagement.jwtRefreshTimeoutHours >= userManagement.jwtSessionDurationHours) {
|
if (userManagement.jwtRefreshTimeoutHours >= userManagement.jwtSessionDurationHours) {
|
||||||
console.warn(
|
if (!inTest)
|
||||||
'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.',
|
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);
|
config.set('userManagement.jwtRefreshTimeoutHours', 0);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue