Fix jwt-token

This commit is contained in:
2025-09-17 22:43:44 +02:00
parent 43b548c05a
commit 6d66d8d772
8 changed files with 289 additions and 49 deletions

View File

@@ -29,7 +29,10 @@ describe('Integration Tests', () => {
app = express();
app.use(express.json());
// Add middleware
// Add global middleware
app.use(checkIPRestriction);
// Add routes
app.use('/auth', authRoutes);
app.use('/detectors', detectorsRoutes);
app.use(authenticateToken);
@@ -52,7 +55,9 @@ describe('Integration Tests', () => {
// 1. Create tenant with registration enabled
const tenant = await createTestTenant({
slug: 'test-tenant',
allow_registration: true
domain: 'test-tenant.example.com',
allow_registration: true,
auth_provider: 'local'
});
// 2. Register new user