Fix jwt-token
This commit is contained in:
@@ -180,8 +180,11 @@ class IPRestrictionMiddleware {
|
||||
|
||||
console.log('🔍 IP Restriction Check - Path:', req.path, 'Method:', req.method);
|
||||
|
||||
// Determine tenant
|
||||
const tenantId = await this.multiAuth.determineTenant(req);
|
||||
// Determine tenant (check req.tenant first for test contexts)
|
||||
let tenantId = req.tenant;
|
||||
if (!tenantId) {
|
||||
tenantId = await this.multiAuth.determineTenant(req);
|
||||
}
|
||||
console.log('🔍 IP Restriction - Determined tenant:', tenantId);
|
||||
|
||||
if (!tenantId) {
|
||||
|
||||
Reference in New Issue
Block a user