feat(core): Custom session timeout and refresh configuration (#8342)

This commit is contained in:
Danny Martini
2024-01-22 09:54:13 +01:00
committed by GitHub
parent f4f496ae85
commit 07e6705256
9 changed files with 299 additions and 13 deletions

View File

@@ -0,0 +1,9 @@
describe('userManagement.jwtRefreshTimeoutHours', () => {
it("resets jwtRefreshTimeoutHours to 0 if it's greater than or equal to jwtSessionDurationHours", async () => {
process.env.N8N_USER_MANAGEMENT_JWT_DURATION_HOURS = '1';
process.env.N8N_USER_MANAGEMENT_JWT_REFRESH_TIMEOUT_HOURS = '1';
const { default: config } = await import('@/config');
expect(config.getEnv('userManagement.jwtRefreshTimeoutHours')).toBe(0);
});
});