Fix jwt-token

This commit is contained in:
2025-09-13 13:41:20 +02:00
parent adf9e28afd
commit 897f959c49

View File

@@ -117,7 +117,7 @@ router.get('/config', async (req, res) => {
// Add provider-specific configuration // Add provider-specific configuration
if (tenant.auth_provider === 'local') { if (tenant.auth_provider === 'local') {
const authConfig = JSON.parse(tenant.auth_config || '{}'); const authConfig = tenant.auth_config || {};
publicConfig.local = { publicConfig.local = {
allow_registration: authConfig.allow_registration || false, allow_registration: authConfig.allow_registration || false,
require_email_verification: authConfig.require_email_verification || false require_email_verification: authConfig.require_email_verification || false