Fix jwt-token
This commit is contained in:
@@ -64,6 +64,12 @@ const multiAuth = new MultiTenantAuth();
|
|||||||
// Initialize IP restriction middleware
|
// Initialize IP restriction middleware
|
||||||
const ipRestriction = new IPRestrictionMiddleware();
|
const ipRestriction = new IPRestrictionMiddleware();
|
||||||
|
|
||||||
|
// Set test models if available (for testing)
|
||||||
|
if (global.__TEST_MODELS__) {
|
||||||
|
multiAuth.setModels && multiAuth.setModels(global.__TEST_MODELS__);
|
||||||
|
ipRestriction.setModels(global.__TEST_MODELS__);
|
||||||
|
}
|
||||||
|
|
||||||
// Session middleware for OAuth state management
|
// Session middleware for OAuth state management
|
||||||
router.use(session({
|
router.use(session({
|
||||||
secret: process.env.SESSION_SECRET || 'your-session-secret',
|
secret: process.env.SESSION_SECRET || 'your-session-secret',
|
||||||
|
|||||||
Reference in New Issue
Block a user