Fix jwt-token

This commit is contained in:
2025-09-14 09:56:20 +02:00
parent ed51786903
commit 8d3006cbc2
2 changed files with 0 additions and 13 deletions

View File

@@ -204,13 +204,10 @@ router.post('/local', async (req, res, next) => {
try {
// Determine tenant
const tenantId = await multiAuth.determineTenant(req);
console.log('🔍 Determined tenant for login:', tenantId);
const authConfig = await multiAuth.getTenantAuthConfig(tenantId);
console.log('🔍 Auth config for tenant:', authConfig);
// Verify tenant supports local authentication
if (authConfig.type !== 'local') {
console.log('🔍 Tenant does not support local auth:', authConfig.type);
return res.status(400).json({
success: false,
message: `This tenant uses ${authConfig.type} authentication. Please use the appropriate login method.`,