From 897f959c495a675c14d47484a664d0754fa72963 Mon Sep 17 00:00:00 2001 From: Alexander Borg Date: Sat, 13 Sep 2025 13:41:20 +0200 Subject: [PATCH] Fix jwt-token --- server/routes/auth.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/routes/auth.js b/server/routes/auth.js index cb26cbb..783e7ad 100644 --- a/server/routes/auth.js +++ b/server/routes/auth.js @@ -117,7 +117,7 @@ router.get('/config', async (req, res) => { // Add provider-specific configuration if (tenant.auth_provider === 'local') { - const authConfig = JSON.parse(tenant.auth_config || '{}'); + const authConfig = tenant.auth_config || {}; publicConfig.local = { allow_registration: authConfig.allow_registration || false, require_email_verification: authConfig.require_email_verification || false