Fix jwt-token

This commit is contained in:
2025-09-13 12:26:21 +02:00
parent fb02eae663
commit f18bac2db5
2 changed files with 8 additions and 1 deletions

View File

@@ -7,6 +7,7 @@ const express = require('express');
const router = express.Router();
const jwt = require('jsonwebtoken');
const bcrypt = require('bcryptjs'); // Fixed: use bcryptjs instead of bcrypt
const { Op } = require('sequelize'); // Add Sequelize operators
const { Tenant, User } = require('../models');
// Management-specific authentication middleware - NO shared auth with tenants