Fix jwt-token
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user