Fix jwt-token

This commit is contained in:
2025-09-13 12:15:14 +02:00
parent 04e9f548e6
commit f6b8019038

View File

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