Fix jwt-token
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user